mattjennings / sveltekit-blog-template

A SvelteKit blog template
https://sveltekit-blog-template.vercel.app
MIT License
229 stars 35 forks source link

Better line breaks #14

Closed ak4zh closed 2 years ago

ak4zh commented 2 years ago

One annoying thing with markdown is if you add a single line break gets removed in the final output. Double line breaks (double return) creates a bigger gap.

The solution is to us <br> html break tag. Is it possible to update this template parse single line breaks automatically to <br> tag.

mattjennings commented 2 years ago

That is the expected behaviour of markdown and I do not wish to change that. Double line breaks results in a new paragraph, ie a <p> tag, so you could adjust the size of the gaps through css or the tailwind config if you find them too big.