Skip to content

Commit

Permalink
Update packages/turndown/src/commonmark-rules.js
Browse files Browse the repository at this point in the history
better comments

Co-authored-by: Henry Heino <[email protected]>
  • Loading branch information
wljince007 and personalizedrefrigerator committed Apr 18, 2024
1 parent 099d2e2 commit 145ff6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/turndown/src/commonmark-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ rules.listItem = {
var parent = node.parentNode
if (isOrderedList(parent)) {
if (node.isCode) {
// remove ordered list in code blocks
// Ordered lists in code blocks are often for line numbers. Remove them.
// See https://github.com/laurent22/joplin/pull/10126
// test case: packages/app-cli/tests/html_to_md/code_multiline_4.html
prefix = '';
Expand Down

0 comments on commit 145ff6c

Please sign in to comment.