Skip to content

Commit

Permalink
Merge pull request #236 from mgreminger/skip-hidden-fence
Browse files Browse the repository at this point in the history
fix: skip hidden fence when parsing
  • Loading branch information
mgreminger authored Feb 9, 2024
2 parents 9373701 + 83d353a commit ba1a053
Show file tree
Hide file tree
Showing 3 changed files with 301 additions and 295 deletions.
4 changes: 2 additions & 2 deletions src/parser/LatexLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ CMD_SLASH_LOG_UNDERSCORE_SINGLE_CHAR_ID: '\\log' [ ]* '_' [a-zA-Z] ;

COMMENT: '\\text{' .*? '}' -> skip ;

CMD_LEFT: '\\left' -> skip ;
CMD_RIGHT: '\\right' -> skip ;
CMD_LEFT: '\\left' '.'? -> skip ;
CMD_RIGHT: '\\right' '.'? -> skip ;

DOUBLE_DOLLAR_SIGN: '$$' -> skip ;

Expand Down
Loading

0 comments on commit ba1a053

Please sign in to comment.