Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dice-roller/vuepress-plugin-dice-roller

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dice-roller/vuepress-plugin-dice-roller - npm Package Compare versions

Comparing version 1.3.0-alpha.2 to 1.3.0-alpha.3

4

package.json
{
"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 || {});
},
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc