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

lys-markdown-parser

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lys-markdown-parser - npm Package Compare versions

Comparing version 3.13.4 to 3.13.5

2

package.json
{
"name": "lys-markdown-parser",
"version": "3.13.4",
"version": "3.13.5",
"description": "js markdown parser",

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

@@ -24,2 +24,15 @@ /**

/**
* 解码链接,解决链接中的中文编码显示问题
* @param {string} v
* @returns
*/
function decodeUrl(v) {
try {
return decodeURIComponent(v)
} catch (_) {
return v
}
}
/**
* AST 转 dom

@@ -118,3 +131,3 @@ * @param {ASTNode} node

a.href = i;
a.textContent = i;
a.textContent = decodeUrl(i);
a.referrerPolicy = 'no-referrer'; // 禁止外联追踪原始地址

@@ -121,0 +134,0 @@ a.target = '_blank';

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