queensferryme / hugo-theme-texify

A minimal, latex-style hugo theme for personal blogging
https://texify.qufy.me
MIT License
134 stars 48 forks source link

MathJax 3.0+ does not support automatic line breaking currently #3

Open queensferryme opened 3 years ago

queensferryme commented 3 years ago

http://docs.mathjax.org/en/latest/output/linebreaks.html

This feature could be used to break inline math formulas so that the content will not overflow on mobile devices.

queensferryme commented 3 years ago

Currently, a fixup (cc789be) is using scrollbar to prevent overflow.

.content .MathJax {
    overflow-x: auto;
    overflow-y: hidden;
}

However, this only works for block math. The automatic linebreak feature, which is not yet implemented in MathJax 3.0, could help prevent inline math from overflowing screen width.

Related issues: https://github.com/mathjax/MathJax/issues/2312

queensferryme commented 2 years ago

Checked MathJax again today and still no news on automatic line break 🥲