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

lys-markdown-parser

Package Overview
Dependencies
Maintainers
1
Versions
44
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 2.2.3 to 2.2.4

src/formater.js

2

package.json
{
"name": "lys-markdown-parser",
"version": "2.2.3",
"version": "2.2.4",
"description": "js markdown parser",

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

@@ -44,3 +44,3 @@ import {

get hr() {
return /(^-{3,}\n)/;
return /(^-{3,}\n|^-{3,}$)/;
},

@@ -314,2 +314,16 @@ // ~~中划线~~

// hr
if (Reg.hr.test(str)) {
const [all] = str.match(Reg.hr) || [];
if (all !== undefined) {
changeCurrentNode({
type: 'hr',
children: [],
});
}
slice(all);
next();
return;
}
if (

@@ -439,16 +453,2 @@ parseQuote(str, ({ raw, content }) => {

// hr
if (Reg.hr.test(str)) {
const [all] = str.match(Reg.hr) || [];
if (all !== undefined) {
changeCurrentNode({
type: 'hr',
children: [],
});
}
slice(all);
next();
return;
}
// 单行text

@@ -455,0 +455,0 @@ if (Reg.text.test(str)) {

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