kramdown icon indicating copy to clipboard operation
kramdown copied to clipboard

Don't add newline after a nested list

Open Convincible opened this issue 3 years ago • 5 comments

Checks whether element is a list, and if that list is nested within another list (i.e. the list's parent is a list item). In this case we should not add another newline.

The change results in nested lists appearing as:

* First item
  * Sub item 1
    * Sub sub item
  * Sub item 2
* Second item
  * Sub item

rather than:

* First item
  * Sub item 1
    * Sub sub item

  * Sub item 2

* Second item
  * Sub item

Convincible avatar Jul 21 '20 11:07 Convincible

Now properly using the @stack variable

Convincible avatar Jul 21 '20 11:07 Convincible

Thank you - I will have a more in-depth look later!

gettalong avatar Jul 21 '20 12:07 gettalong

Has this bug been fixed @gettalong ?

Convincible avatar Jun 28 '21 11:06 Convincible

@Convincible No, this change is not yet included but looks good! Please add some test and then it is good to go - thanks!

gettalong avatar Mar 17 '22 21:03 gettalong

@Convincible No, this change is not yet included but looks good! Please add some test and then it is good to go - thanks!

Where would such a test go? I'd really like to have this change.

cabo avatar Apr 21 '24 09:04 cabo