Closed rjb25 closed 7 years ago
This may be an error with the implementation (of cryogen) not passing line breaks to markdown-clj
That is how the reference implementation handles this. When a new line is added there is a space inserted between the concatenated content as seen in the tests here.
Also, I wasn't able to replicate the issue with Cryogen. When I have text on separate lines, it's joined with a space.
It appears the issue only starts after a code block with an empty line before it. like: hey
``` hello ``` no space
TURNS INTO
hey
hello
nospace
Another issue is that this: hey ``` hello ```
**TURNS INTO***
hey
hello
Note the excess space at the end. These issues might be linked.
You're right, the code blocks should work without space around them. The current workaround would be to put space before and after the code blocks for consistent behavior.
I'll take a look at this when I get a chance, but if you'd like to take a look in the meantime feel free to make a pr. :)
Is your flexmark parser going to deprecate markdown-clj? I do not want to go to the trouble if it will.
It's not going to deprecate it as they both have their pros and cons. However, if flexmark works better for you, then I would recommend switching to it.
Ok, I will give a crack at fixing this bug then.
If I have two sentences in a mardown file like so: hey how are you? Good How about you? It translates to: hey how are you?Good How about you? Is this intentional? Why ignore line breaks? And if you are going to ignore them at least put a space between line content.