New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bisheng-plugin-local-img

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bisheng-plugin-local-img - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

11

lib/node.js

@@ -12,6 +12,9 @@ 'use strict';

const children = JsonML.isElement(jml) ? JsonML.getChildren(jml) : [];
if (children.length < 2) {
if (children.length < 1) {
convert(jml);
} else {
children.forEach(child => {
if (JsonML.isElement(child) && JsonML.getTagName(child) === 'p') {
child[0] = 'div';
}
findImgElment(child);

@@ -40,8 +43,6 @@ });

const { content } = markdownData;
if (markdownData.meta && markdownData.meta.title == '文档标题 也作为菜单名称') {
if (Array.isArray(content)) {
findImgElment(markdownData.content);
}
if (Array.isArray(content)) {
findImgElment(markdownData.content);
}
return markdownData;
};
{
"name": "bisheng-plugin-local-img",
"version": "1.0.7",
"version": "1.0.8",
"description": "change <img> to React code block if src is local file path",

@@ -5,0 +5,0 @@ "main": "index.js",

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