bookish icon indicating copy to clipboard operation
bookish copied to clipboard

Comma wraps after segments with marginals

Open amyjko opened this issue 1 year ago • 1 comments

image

amyjko avatar Apr 04 '23 19:04 amyjko

This is caused by the block marginal interface that's contained inside the span. When it's visible, it breaks the algorithm that keeps commas next to words because it finds a block between them. The only way to fix this is to change how marginals are structured in HTML, removing them from the tree and separately rendering them elsewhere. That's probably a better design anyway, though it would make it harder to edit them, since it would require some magic jump to the editor somehow (or a click to the marginal).

amyjko avatar Jul 15 '23 15:07 amyjko