Skip to content

Commit

Permalink
Merge pull request #97 from danielj-n/main
Browse files Browse the repository at this point in the history
Removed formatting on latex comments to prevent % characters from removing lines of text
  • Loading branch information
npiv authored Aug 30, 2024
2 parents 78a5504 + 4cb9680 commit 67283ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chatblade/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def format_latex(msg):
code_inlines = re.findall(code_inline_pattern, msg)
msg = re.sub(code_inline_pattern, "\0CODE_INLINE\0", msg)

converter = LatexNodes2Text()
converter = LatexNodes2Text(keep_comments=True)
msg = converter.latex_to_text(msg)

# do no change code blocks to smart quotes, this will break the markdown
Expand Down

0 comments on commit 67283ec

Please sign in to comment.