Skip to content

Commit

Permalink
fix: recognize escaped "$" in latex blocks (#165)
Browse files Browse the repository at this point in the history
Fixes #148
  • Loading branch information
ribru17 authored Oct 19, 2024
1 parent b7eba93 commit e70017d
Show file tree
Hide file tree
Showing 6 changed files with 29,094 additions and 28,775 deletions.
2 changes: 1 addition & 1 deletion tree-sitter-markdown-inline/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ module.exports = grammar(add_inline_rules({

latex_block: $ => seq(
alias($._latex_span_start, $.latex_span_delimiter),
repeat(choice($._text_base, '[', ']', $._soft_line_break, $._html_tag)),
repeat(choice($._text_base, '[', ']', $._soft_line_break, $._html_tag, $.backslash_escape)),
alias($._latex_span_close, $.latex_span_delimiter),
),

Expand Down
4 changes: 4 additions & 0 deletions tree-sitter-markdown-inline/src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions tree-sitter-markdown-inline/src/node-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e70017d

Please sign in to comment.