Skip to content

fix: strip <em> tags before rendering math blocks#2

Merged
AaronCQL merged 5 commits intomasterfrom
em-fix
Sep 7, 2020
Merged

fix: strip <em> tags before rendering math blocks#2
AaronCQL merged 5 commits intomasterfrom
em-fix

Conversation

@AaronCQL
Copy link
Copy Markdown
Owner

@AaronCQL AaronCQL commented Sep 7, 2020

  • Common problematic latex syntax include }_ and ^*, which GitHub will parse as }<em> and ^<em> respectively
  • This fix finds in the DOM all instances of }<em> and ^<em>, and the corresponding closing </em> and replaces them appropriately
  • Has potential to cause problems since all instances, instead of only those in math blocks are replaced

Fixes #1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parenthesis and underscore doesn't work?

1 participant