You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@lezer/markdown

Package Overview
Dependencies
Maintainers
1
Versions
26
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

to
1.3.1

8

CHANGELOG.md

@@ -0,1 +1,9 @@

## 1.3.1 (2024-09-02)
### Bug fixes
Fix emphasis parsing to properly test for punctuation on platforms that support regular expression unicode categories.
Fix an issue where dashes right after a paragraph weren't parsed as horizontal rules when setext headers are disabled.
## 1.3.0 (2024-04-03)

@@ -2,0 +10,0 @@

2

package.json
{
"name": "@lezer/markdown",
"version": "1.3.0",
"version": "1.3.1",
"description": "Incremental Markdown parser that consumes and emits Lezer trees",

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

@@ -3562,2 +3562,8 @@ import {parser} from "../dist/index.js"

})
it("Parses horizontal rules when setext headers are disabled", () => {
let tree = parser.configure({remove: ["SetextHeading"]}).parse(`abc\n---`)
if (tree.toString() != "Document(Paragraph,HorizontalRule)")
throw new Error("Unexpected tree: " + tree)
})
})

Sorry, the diff of this file is not supported yet

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

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