groc
groc copied to clipboard
Enumerations in comments don't work properly
It seems like enumerations don't work properly when there is a paragraph before. I used this test file
// # Enumeration Tests
//
// ## I work!
//
// ### Unordered lists
//
// - Item 1
// - Item 2
// - Item 3
//
// ### Ordered Lists
//
// 1. Item 1
// 1. Item 2
// 1. Item 3
// ## I don't work?!!
//
// Why? Because it seems that if you place a normal paragraph before an enumerations that enumeration isn't
// recognized properly...
//
// - Enum 1
// - Enum 2
which produces the wrong output (as can be seen in the attached screenshot).
I did some research, but did not have time to solve it yet. My findings:
The examples that work create separate sections for headline and enumeration. The example that does not work has paragraph and enumeration collapsed into one section.
:+1: for anybody who has time to solve this problem …