Simple math markup using straight asciidoctor

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Simple math markup using straight asciidoctor

Has anyone written an asciidoctor extension that would do something like change the style of words in a span with a specified user style, while leaving numbers in that span unchanged? The hope is to reproduce conventions for displaying math, where words are italicized but numbers are not, without actually including all the intrusive underscores required to make that happen. So we could write something like

[eq]#M~h~ = [-1, 0, 1]#

and get the M and h in italics, the array in roman.

N.b. MathJax / KaTeX are great - until you have hundreds of equations in a document, and loading turns into a 45 second process.