Skip to content

Special parser behavior for LaTeX with \{ inside #920

@topcheer

Description

@topcheer

Is your feature request related to a problem? Please describe.
I was trying to render LaTeX using custom renderer with react-native-mathjax-html-to-svg, most of LaTex can be rendered correctly, however, when the LaTex formula include any escaped characters(deemed by react-native-marked parser), for example, the collections, ¥¥B=\{x | x <1\}¥¥, the parser will break this into different type of tokens (normal text + escape text) , so my custom renderer (text() method) will stop working since it can't see the full text any longer.

Describe the solution you'd like
Support a special case where parser will not parse the \{ as escape token if it's between ¥...¥ or ¥¥....¥¥

Describe alternatives you've considered
It doesn't seem to have a way to use custom parser

¥should read as $ , have to do this otherwise github will replace them with rendered LaTeX

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions