simple-markdown
simple-markdown copied to clipboard
Question: Markdown Lists
Hi! :wave:
I work in a project that uses simple-markdown as a dependency.
I noticed the following:
When we have a paragraph with more than a sentence that starts with a - like:
- Hey, I am not exactly an unordered list! I am a weird case, that might cause problems in the expected behaviour.
the output of parserFor(rules) is the following:
const ast = [
{
"ordered": false,
"items": [
[
{
"content": "Hey",
"type": "text"
},
{
"content": ", I am not exactly an unordered list",
"type": "text"
},
{
"content": "! I am a weird case",
"type": "text"
},
{
"content": ", that might cause problems in the expected behaviour",
"type": "text"
},
{
"content": ".",
"type": "text"
}
]
],
"type": "list"
}
]
**Question: ** Is this the expected behaviour?
Then we try to use outputFor and it throws an error here

Which looks like a bug to me 🤔.