Arithmatex: allow specifying parent element #1453
Labels
C: arithmatex
Related to the arithmatex extension.
S: triage
Issue needs triage.
T: feature
Feature.
I've recently switched to using the generic form for MathJax and such. It infuriates me that the
mkdocs-minify-plugin
doesn't allow ignoring certain tags via classes etc. What this means is that our math, which is wrapped in a<div>
gets minified which can break some blocks and there is no real way to prevent this without writing my own, similar plugin (which I'm not going to do).Granted, I understand it is built on a library that does not expose this ability either, and I don't think that library has seen updates in quite some time. So, I don't blame them for not having such a feature.
So, a new option will be added to allow the configuring of the wrapper HTML element. In our case, we want
<pre>
. Doing this causes the minifier to skip minimizing the whitespace. We will also add a new SuperFences formatter for Arithmatex that should one day replace all the others as it is configurable. It will basically add the same functionality for people who prefer using fences for math. Works in MkDocs as well.Anyways, I wasn't planning this, but with the recent change to MkDocs Material instant mode for our docs, and then the moving to the generic mode in Arithmatex, I either had to give up HTML minification, or math, so I chose neither 🙂.
The text was updated successfully, but these errors were encountered: