# 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) :::

Made with ❤️ by Ahmad Mostafa - @z3by