MWE: ```python import mistune from rich import print markdown = mistune.create_markdown( renderer="ast", plugins=["math"], ) tokens = markdown(r"$x=\$$") print(tokens) ``` Output: ```python [ { 'type': 'paragraph', 'children': [ {'type': 'inline_math', 'raw': 'x=\\'}, {'type': 'text', 'raw': '$'} ] } ] ```
Activity
[-]Escaped math incorrectly parsed[/-][+]Escaped `$` in math incorrectly parsed[/+]fix: handle escaped dollar signs in inline math (fixes lepture#370)