Skip to content

Commit 12e4e62

Browse files
committed
fix(asciidoc): Prevent rendering inside source blocks/code blocks
1 parent 542b4b8 commit 12e4e62

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lua/markview/parser.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ parser.create_ignore_range = function (language, items)
2323
for _, item in ipairs(items["markdown_code_block"] or {}) do
2424
table.insert(_r, { item.range.row_start, item.range.row_end })
2525
end
26+
elseif language == "asciidoc" then
27+
for _, item in ipairs(items["asciidoc_code_block"] or {}) do
28+
table.insert(_r, { item.range.row_start, item.range.row_end })
29+
end
2630
elseif language == "typst" then
2731
-- Do not parse things inside raw block.
2832
for _, item in ipairs(items["typst_raw_block"] or {}) do

0 commit comments

Comments
 (0)