Replies: 1 comment 1 reply
-
Perhaps you can use the If you want to change the regexes, you could use Alternatively, you could change your KaTeX delimiters to ignore The "proper" way to fix this would be to embed KaTeX into asciidoctor so that they're processed together and proper escaping can happen. Maybe look at some plugins like https://github.com/jirutka/asciidoctor-katex |
Beta Was this translation helpful? Give feedback.
-
We're using asciidoctor + auto-render extension + offline pre-processing with nodejs to pre-convert math to HTML, and running into an issue where some '\( ... \)' markup in text that isn't math (a regexp example) is getting treated as a math delimiter and messing up the rendering. The \( math delimiters are getting generated from somewhere inside the asciidoctor pipeline and aren't directly under our control.
Is there a way to tag regions of the document so the auto-render extension won't run on them? That may be doable via a CSS style on the regexp, for example. Other alternatives get uglier (trying to use funky Unicode to get the offending markup through to the HTML renderer without the auto-render extension seeing it? Actually changing the regexp? Hacking asciidoctor internals?)
Beta Was this translation helpful? Give feedback.
All reactions