simov/markdown-viewer

Indented lists with intervening comments doesn't display properly

Opened this issue · 1 comments

wnm3 commented

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

simov commented

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.