markup.ml icon indicating copy to clipboard operation
markup.ml copied to clipboard

Don't pretty-print SVG or MathML

Open aantron opened this issue 4 years ago • 1 comments

See https://github.com/dmbaturin/soupault/issues/25:

This is arguably an upstream bug. Lambda Soup's (that is, Markup's) pretty-printer is supposedly sensitive to the meaning of elements, and should only insert whitespace where it would have no semantic effect (typically, where there is already whitespace around HTML phrasing content, and anywhere around HTML flow content). It should probably just treat all SVG (and MathML) as opaque, while IIRC it currently applies blind pretty-printing to it instead.

aantron avatar Mar 23 '21 17:03 aantron

...or have Markup.ml understand SVG and MathML semantics.

aantron avatar Mar 23 '21 17:03 aantron