ecmarkdown icon indicating copy to clipboard operation
ecmarkdown copied to clipboard

Deindent rendered list item contents

Open gibson042 opened this issue 2 years ago • 0 comments
trafficstars

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 https://github.com/tc39/ecmarkup/pull/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

gibson042 avatar Jan 23 '23 22:01 gibson042