stefnotch / aftermath-editor

A WYSIWYG mathematics editor that understands your formulas!
https://stefnotch.github.io/aftermath-editor
MIT License
13 stars 0 forks source link

Handle Line Breaking #58

Open stefnotch opened 1 year ago

stefnotch commented 1 year ago

Currently MathML Core doesn't support line breaking https://github.com/w3c/mathml-core/issues/127

As soon as it does, we'll have to properly support it. There is currently a fair bit of code that assumes that everything in a row is on one line. (e.g. selections, rendering and re-rendering annotations, ...)

We might have to use this instead of getBoundingClientRect https://developer.mozilla.org/en-US/docs/Web/API/Element/getClientRects

Maybe the CSS Painting API will become useful for rendering certain things? https://developer.mozilla.org/en-US/docs/Web/Guide/Houdini#css_painting_api