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.
If I have the following markdown:
# Hello - foo - bar - baz
It will be exported as:
I suppose the newlines are added for better readability, but in my case, that doesn’t matter. Is there a way I can get the following output instead: