0.1.7 • Published 4 years ago

vuepress-plugin-dice-roller v0.1.7

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

vuepress-plugin-dice-roller

Plugin for VuePress that allows rolling dice.

It is built upon this RPG dice roller, and is used in its documentation.

Install

Install the plugin:

npm install -D vuepress-plugin-dice-roller
# Or
yarn add -D vuepress-plugin-dice-roller

Then add the plugin to your Vuepress config file:

module.exports = {
  ...
  plugins: [
    ...
    'dice-roller',
  ],
};

Usage

You can add a dice roller anywhere by using the following markdown syntax, where {notation} is the optional notation to pre-fill the input with:

::: roll {notation} :::

For example:

::: roll 4d6 ::
::: roll (2*6)d10 / (4 - d20) :::
0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago