Open yakoder opened 4 years ago
Did a bit of investigation to see when this default was set, and it looks like it was defined when the project switched from MarkdownJ to PegDown. While you can easily override the default per project there is no specific reason why this default was set this way, so I don't see any reason why the default shouldn't match the original Markdown spec.
This appears to be related to a long closed 'question' #159 in that the default settings for 'markdown.extensions' do not obey the very clearly specified spec for Markdown (as per JBake documentation is located at Daring Fireball. Specifically:
Testing methodology (after noticing this on a real site and spending an hour researching things):
mkdir test
cd test
jbake -i
content/test.md
jbake -b
output/test.html
(Has unexpected, per spec, and unwantedtags
mkdir test2
cd test2
jbake.properties
("test2-jbake.properties" in referenced gist) to addmarkdown.extensions=-HARDWRAPS
jbake -b
output/test2.html
(Is as expected, per spec, at least for paragraphs. There's a few missing spaces between words, but that's a different issue (maybe).Files on gist
As I see it, there's a few potential, acceptable, solutions to this:
HARDWRAPS
when calling flexmark-javafor every newline.
markdown.extensions=-HARDWRAPS
to theirjbake.properties
to get it to render paragraphs per spec.Other info: I actually started by going through all (open and closed) issues for flexmark-java, thinking it was a bug in that project, before coming and searching here. Not sure why it was raised as only a "question" back in 2014, and then immediately closed by that reporter, since it clearly is an issue of not following markdown specifications. (They typed a whole long paragraph on this point, so it's kinda one of the more important pieces of Markdown to the language creators.)