View Single Post
Old 02-13-2025, 05:41 PM   #1
wanderson
Enthusiast
wanderson began at the beginning.
 
wanderson's Avatar
 
Posts: 28
Karma: 10
Join Date: Jul 2017
Location: Austin TX USA
Device: Kindle Paperwhite Gen 11, Likebook Mars & TCL NxtPaper 11
Comment Rendering in Editor Window

Is there any simple way to optionally defeat the italicization of HTML comments in the Calibre editor window? HTML comments are too rarely seen, but are useful (especially in math-heavy epubs); they are typed in as, e.g.:

<!-- \left(\frac{1+e}{2}\right)^n -->

I like the colorization, but the Calibre editor's italicization effectively renders backslashes ("\") as vertical bars ("|"), e.g. the above comment looks something like the following in the editor (simulated here, as the slant in the editor is much more aggressive):

<!-- |left(|frac{1+e}{2}|right)^n -->

I find the vertical bars obfuscate comments containing LaTeX, FWIW. BTW, I use online LaTeX to MathML converters to render math for epubs. That way, ereaders which don't have JS-support can still see the equations.
wanderson is offline   Reply With Quote