I’m creating a plugin that serializes Kirby content. One step is to convert Markdown to HTML. However, since that data will be saved in a file, the size of it matters. The Markdown class of Kirby parses it with newlines.
Well, yeah, but isn’t this risky? Could the parser output legitimate newlines that actually need to be there? Or all necessary line breaks are replaced with <br>?
Probably, depending on what content your text contains, thinking of scripts etc., e.g. if people do not use semicolons at the end of lines. You’d probably need a HTML minifying library.