markdown-to-jsx
markdown-to-jsx copied to clipboard
section starts need double newline
Using 6.11.4, the following input is not handled as well as with other tools.
### S1
C1
### S2
C2
Actual
The second triple-hash is not treated as a new section.
Expected
Two sections (github's own preview seems to handle this fine, as does vscode's, as does https://dillinger.io/, etc.). E.g. when i place a newline before the second section:
### S1
C1
### S2
C2
then markdown-to-jsx parses it as do the other tools (without the extra newline):
bump on this one, just encountered it too #337
Yes, I am having the same issue with markdown generated via some Draft.js editor plugin
I have similar issue
//single newline doesn't work after the colon
test:
- li
- li
//double newline works after the colon
test:
- li
- li
github markdown test which works with single newline
//single newline works test:
- li
- li
//double newline works test:
- li
- li
fwiw, we have switched to react-markdown which, under the covers, uses remark-parse for parsing. With react-markdown v5 (which uses remark-parse v9), we have found the parsing to be pretty robust (v4/v8 had several parser bugs that impacted us, but v5/v9 seems pretty good)
@starpit thanks for suggesting, will check it out
Using 7.1.1, this behavior hasn't changed.
Using 7.1.3 still not changed,maybe author already forget this,let me mention @probablyup