Skip to content

Deindent rendered list item contents#94

Open
gibson042 wants to merge 2 commits intotc39:mainfrom
gibson042:2023-01-deindent-list-items
Open

Deindent rendered list item contents#94
gibson042 wants to merge 2 commits intotc39:mainfrom
gibson042:2023-01-deindent-list-items

Conversation

@gibson042
Copy link
Copy Markdown
Member

Line breaks in list items contents are preserved in output, but the indenting white space following them should be stripped. This will improve the rendering sought by tc39/ecmarkup#513 .

Exaggerated effects
ecmarkdown input

1. Item 1
                      1. Item 2
                         Item 2 line 2

output HTML

 <ol><li>Item 1<ol><li>Item 2
-                         Item 2 line 2</li></ol></li></ol>
+Item 2 line 2</li></ol></li></ol>

rendered output

  • Item 1
    • Item 2
      ·························25 removed spacesItem 2 line 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant