Get the latest tech news

MathML with Pandoc


Adding equations to the blog.

For a while, I was even writing MathML directly, albeit with the help of some Typinator abbreviations, because I couldn’t trust the converters to generate the correct characters or even understand some LaTeX commands I use regularly. Line 11 then parses html with Beautiful Soup, putting it in a form that makes it very easy to change. I think I can use BBEdit’s AppleScript library to control the cursor and make the selection before sending the text to the Python script.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of mathml

mathml

Photo of pandoc

pandoc

Related news:

News photo

Using Pandoc and Typst to Produce PDFs

News photo

Dream-HTML – render HTML, SVG, MathML, Htmx markup from OCaml