When Markdown is transformed into HTML, tags are inserted wherever line breaks exist in the .md file, instead of only where two space characters exist at the end of the line.
It's easy enough for someone to remove the breaks: true, part of the Markdown overrides in eleventy.js but perhaps it could be more explicitly documented or false by default?
False by default would be consistent with what would be expected from a Github Preview / the Markdown-it demo.
False by default makes version control for content easier, using semantic linebreaks.
```
Live example:
https://github.com/tylensthilaire/eleventy-base-blog/blob/master/posts/firstpost.md
https://nostalgic-kepler-b836c1.netlify.app/posts/firstpost/
Only the second paragraph would have any ` ` tags in a GitHub/Markdown-it preview by default.
When Markdown is transformed into HTML,
tags are inserted wherever line breaks exist in the .md file, instead of only where two space characters exist at the end of the line.
It's easy enough for someone to remove the
breaks: true,
part of the Markdown overrides in eleventy.js but perhaps it could be more explicitly documented or false by default?Verbose example
```json /* Markdown Overrides */ let markdownLibrary = markdownIt({ html: true, breaks: true, linkify: true }).use(markdownItAnchor, { permalink: true, permalinkClass: "direct-link", permalinkSymbol: "#" }); ``` `breaks: true,` turns: ```md Lorem ipsum dolor sit amet. Consectetur adipiscing elit. ``` into: ```htmlLorem ipsum dolor
sit amet.
Consectetur
``` Removing `breaks: true,` outputs: ```htmladipiscing elit.
Lorem ipsum dolor sit amet
Consectetur
``` Live example: https://github.com/tylensthilaire/eleventy-base-blog/blob/master/posts/firstpost.md https://nostalgic-kepler-b836c1.netlify.app/posts/firstpost/ Only the second paragraph would have any `adipiscing elit.
` tags in a GitHub/Markdown-it preview by default.