Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@lezer/markdown

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lezer/markdown - npm Package Compare versions

Comparing version
1.4.2
to
1.4.3
+6
-0
CHANGELOG.md

@@ -0,1 +1,7 @@

## 1.4.3 (2025-04-27)
### Bug fixes
Run the HTML parser on HTML comment blocks, since those may include non-comment content at their end.
## 1.4.2 (2025-02-24)

@@ -2,0 +8,0 @@

+1
-1
{
"name": "@lezer/markdown",
"version": "1.4.2",
"version": "1.4.3",
"description": "Incremental Markdown parser that consumes and emits Lezer trees",

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

@@ -40,3 +40,3 @@ import {SyntaxNode, Parser, Input, parseMixed, SyntaxNodeRef} from "@lezer/common"

return {parser, overlay: node => node.type.id == Type.CodeText}
} else if (htmlParser && (id == Type.HTMLBlock || id == Type.HTMLTag)) {
} else if (htmlParser && (id == Type.HTMLBlock || id == Type.HTMLTag || id == Type.CommentBlock)) {
return {parser: htmlParser, overlay: leftOverSpace(node.node, node.from, node.to)}

@@ -43,0 +43,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display