Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#374·markdown-it

list sourceMap end row includes trailing blank lines

Author: dwelleCreated Jun 23, 2017Updated Dec 2, 2017
Labelsbug

When generating sourcemap for lists (both ul,li), the trailing blank lines (\s*) are included thus the end row of the following example isn't 1 as usual, but 3:

- aaa


bbb

see demo, where both bullet_list_open and list_item_open have [ 0, 9 ]

Source: markdown-it/markdown-it

View original on GitHubView discussion on GitHub