FSharp.Formatting icon indicating copy to clipboard operation
FSharp.Formatting copied to clipboard

Markdown parser gets asterisk inside codeblock inside list wrong

Open ljw1004 opened this issue 9 years ago • 0 comments

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
```

ljw1004 avatar Mar 23 '16 22:03 ljw1004