@drghaliasri/butex 4.3.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -101,6 +101,14 @@ ${BUTEX_TAKWEEN_FONT_FACE_CSS}
101
101
  var BUTEX_CHROME_CSS = `
102
102
  ${BUTEX_FONT_FACE_CSS}
103
103
 
104
+ /* Guard against host CSS resets (e.g. Tailwind Preflight's \`svg { display: block }\`).
105
+ * MathJax relies on the browser default \`display: inline\` for its SVG output; with
106
+ * MathJax v4 inline line-breaking an equation can be emitted as several sibling
107
+ * <svg> chunks, and a block-level reset stacks them vertically. */
108
+ mjx-container svg {
109
+ display: inline;
110
+ }
111
+
104
112
  /* BuTeX: Arabic sqrt \u2014 outer mirror entire radical, inner unmirror index & radicand */
105
113
  mjx-container[jax="CHTML"] .mjx-rtl-mirror {
106
114
  transform: scaleX(-1);