@lezer/markdown
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -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 @@ |
{ | ||
"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
407601
9822