FSharp.Formatting
FSharp.Formatting copied to clipboard
Markdown parser gets asterisk inside codeblock inside list wrong
The markdown parser gets asterisk-inside-codeblock-inside-list wrong. For instance, try this markdown code
* Alpha
```
* Beta
```
Gamma
On both GitHub and CommonMark, it's rendered as a bulleted list with only one item; that item contains text, then a codeblock, then more text:
- Alpha
* Beta
Gamma
But F# mistakes the asterisk for a sub-bulleted-item, and so it produces
ListBlock[
Paragraph "Alpha"
CodeBlock ""
ListBlock[
Paragraph "Beta"
CodeBlock "Gamma"
which renders like this:
- Alpha
<empty>
- Beta
```
Gamma
```