markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

Indented lists with intervening comments doesn't display properly

Open wnm3 opened this issue 1 year ago • 1 comments
trafficstars

Given Markdown like this:

<!-- <ul> -->

 *   **Author Workbench integration**
    
    <!-- <ul> -->
    
     *  We believe better integration with these tools will help reduce duplication of work and will promote collaboration
    
    <!-- </ul> -->
  

The indented list item shows as code rather than as a normal indented item. This displays properly in the MMDComposer5 tool as shown on the right. We have augmented Markdown with comments for subsequent transformations and LLMs:

image

wnm3 avatar May 24 '24 18:05 wnm3

I was able to reproduce it, though fixing this would be up to the maintainers of the underlying parsers - markdown-it, marked and remark that the extension ships with. It also depends on what their stance would be on that edge case in particular.

simov avatar May 25 '24 14:05 simov