Skip to content

Commit

Permalink
14/61
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossNox committed Jul 30, 2024
1 parent 295b9c3 commit f496d30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion m2r2/m2r2.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ def parse_rest_link(self, match: Match, state: State) -> Element:

def parse_inline_math(self, match: Match, state: State) -> Element:
"""Pass through rest link."""
return "inline_math", match.group(2)
# WHY HERE TOO
# TODO: CRY
return "inline_math", match.group().strip("`").strip("$")

def parse_eol_literal_marker(self, match: Match, state: State) -> Element:
"""Pass through rest link."""
Expand Down

0 comments on commit f496d30

Please sign in to comment.