mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
Line breaks for inline formulas (#1287)
* Line breaks for inline formulas * Basic support for \allowbreak and \nobreak * Fix spacing around \nobreak, and add documentation * Backwards-compatibility _getBuilt to fix tests * Put operator spacing on same line as operator * One approach to ~ * Simplify \allowbreak/\nobreak, make ~/\nobreakspace prevent line breaks * Adapt to #1295 * Prevent wrapping within a .base * Implement \hspace* properly * Fix flow error * Update comment for regularSpace * Update screenshots * Move `width: min-content` from .katex into .base * Fix screenshot * Add min-width rule to .vlist-s * Factor out hasClass method * Cleanup nobreak test * Pull out buildHTMLUnbreakable * Fix \hspace* test (no longer the same as \hspace) * Fix \nobreak handling * Add screenshot test
This commit is contained in:
committed by
Kevin Barabash
parent
34e6458245
commit
523df299e5
Binary file not shown.
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
Reference in New Issue
Block a user