@dice-roller/vuepress-plugin-dice-roller
Advanced tools
Comparing version 1.3.0-alpha.2 to 1.3.0-alpha.3
{ | ||
"name": "@dice-roller/vuepress-plugin-dice-roller", | ||
"version": "1.3.0-alpha.2", | ||
"version": "1.3.0-alpha.3", | ||
"description": "Plugin for VuePress that allows rolling dice", | ||
@@ -38,3 +38,3 @@ "type": "module", | ||
"dependencies": { | ||
"@dice-roller/markdown-it-dice-roller": "^0.0.1-alpha.3", | ||
"@dice-roller/markdown-it-dice-roller": "^0.0.1-alpha.4", | ||
"@dice-roller/vue": "^1.2.0", | ||
@@ -41,0 +41,0 @@ "markdown-it-container": "^3.0.0" |
@@ -6,30 +6,2 @@ import { getDirname, path } from '@vuepress/utils'; | ||
/* const render = (tokens, idx) => { | ||
const { nesting, info } = tokens[idx]; | ||
if (nesting === 1) { | ||
// opening tag | ||
const [, notation] = info.trim().match(/roll\s+(.*?(?=\s*:::))/); | ||
return `<DiceRoller notation="${notation}"/>`; | ||
} | ||
// closing tag | ||
return ''; | ||
};*/ | ||
/* const render = (tokens, idx) => { | ||
const { nesting, info } = tokens[idx]; | ||
if (nesting === 1) { | ||
// opening tag | ||
const [, notation] = info.trim().match(/^rolls?\s+(.*?)(:::)?$/s) ?? []; | ||
//const [, ...matches] = info.trim().match(/^rolls?\s+(.*?)(:::)?$/s) || []; | ||
return `<DiceRoller notation="${notation ?? ''}"/>`; | ||
} | ||
// closing tag | ||
return ''; | ||
}; */ | ||
export const diceRollerPlugin = (options = {}) => ({ | ||
@@ -39,6 +11,5 @@ name: '@dice-roller/vuepress-plugin-dice-roller', | ||
extendsMarkdown: (md) => { | ||
//md.use(markdownItContainer, 'roll', { render }); | ||
md.use(Roll, 'roll', options.rollOptions || {}); | ||
md.use(Roller, 'roller', options.rollerOptions || {}); | ||
md.use(Roll, options.rollOptions || {}); | ||
md.use(Roller, options.rollerOptions || {}); | ||
}, | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15655
185
+ Addedmagic-string@0.30.14(transitive)
+ Addednanoid@3.3.8(transitive)
- Removedmagic-string@0.30.13(transitive)
- Removednanoid@3.3.7(transitive)