pymarkdown icon indicating copy to clipboard operation
pymarkdown copied to clipboard

Bug: false positive of warning ul-start-left in nested lists

Open arwedus opened this issue 2 years ago • 0 comments

Problem:

With the attached markdown file and pymarkdown config, the following warnings are issued:

$ pymarkdown --config pymarkdown.json.txt scan pymarkdown_md006_false_positive_example.md 
pymarkdown_md006_false_positive_example.md:21:3: MD006: Consider starting bulleted lists at the beginning of the line (ul-start-left)
pymarkdown_md006_false_positive_example.md:22:3: MD006: Consider starting bulleted lists at the beginning of the line (ul-start-left)
pymarkdown_md006_false_positive_example.md:23:3: MD006: Consider starting bulleted lists at the beginning of the line (ul-start-left)

pymarkdown_md006_false_positive_example.md

pymarkdown.json.txt

Tested with: pymarkdownlnt==0.9.7 and the current main branch commit.

Expected result:

No warnings are issued, as the indentation of the outer unordered list item is inherited from the previous paragraph.

arwedus avatar Sep 15 '22 14:09 arwedus