Socket
Socket
Sign inDemoInstall

@zhennann/markdown-it-block

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

@zhennann/markdown-it-block - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

8

index.js

@@ -32,3 +32,3 @@ // Process block-level custom containers

// render
if (!block || !block.render) {
if (!block || !block.beanFullName) {
// placeholder

@@ -42,4 +42,6 @@ const res = JSON5.stringify(content, null, 2);

}
// block
return block.render({ md, options, block, token, index: idx, content });
// bean
const beanInstance = options.ctx.bean._getBean(block.beanFullName);
if (!beanInstance) throw new Error(`bean not found: ${block.beanFullName}`);
return beanInstance.render({ md, options, block, token, index: idx, content });
}

@@ -46,0 +48,0 @@

{
"name": "@zhennann/markdown-it-block",
"version": "3.1.1",
"version": "3.1.2",
"description": "Plugin to create block-level custom tags for markdown-it markdown parser on Cabloy-CMS",

@@ -27,3 +27,3 @@ "main": "index.js",

},
"gitHead": "aab413c1edd9cc0630a0fdcb340c3e5a585f4920"
"gitHead": "2d69c0a38865606ad899b3f49d27fe058ba4c5a7"
}
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