@lezer/markdown
Advanced tools
+6
-0
@@ -0,1 +1,7 @@ | ||
| ## 1.6.2 (2025-12-22) | ||
| ### Bug fixes | ||
| Nested parses in fenced blocks are now marked as bracketed. | ||
| ## 1.6.1 (2025-12-06) | ||
@@ -2,0 +8,0 @@ |
+2
-2
| { | ||
| "name": "@lezer/markdown", | ||
| "version": "1.6.1", | ||
| "version": "1.6.2", | ||
| "description": "Incremental Markdown parser that consumes and emits Lezer trees", | ||
@@ -24,3 +24,3 @@ "main": "dist/index.cjs", | ||
| "dependencies": { | ||
| "@lezer/common": "^1.0.0", | ||
| "@lezer/common": "^1.5.0", | ||
| "@lezer/highlight": "^1.0.0" | ||
@@ -27,0 +27,0 @@ }, |
+1
-1
@@ -39,3 +39,3 @@ import {SyntaxNode, Parser, Input, parseMixed, SyntaxNodeRef} from "@lezer/common" | ||
| if (parser) | ||
| return {parser, overlay: node => node.type.id == Type.CodeText} | ||
| return {parser, overlay: node => node.type.id == Type.CodeText, bracketed: id == Type.FencedCode} | ||
| } else if (htmlParser && (id == Type.HTMLBlock || id == Type.HTMLTag || id == Type.CommentBlock)) { | ||
@@ -42,0 +42,0 @@ return {parser: htmlParser, overlay: leftOverSpace(node.node, node.from, node.to)} |
@@ -3558,2 +3558,8 @@ import {parser} from "../dist/index.js" | ||
| test("Creates a code node for blank-line fenced blocks", ` | ||
| {FC:{c:\`\`\`} | ||
| {cT: | ||
| }{c:\`\`\`}} | ||
| `) | ||
| it("Doesn't get confused by tabs indenting a list item", () => { | ||
@@ -3560,0 +3566,0 @@ let doc = ` - a\n\t\tb` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
451525
0.23%10708
0.2%Updated