简体   繁体   中英

Does GitHub flavored markdown, as rendered by kramdown have a maximum number of nested lists?

I am trying to render a markdown document with kramdown. The document has 4 levels of nested lists but the third and fourth levels are rendering as one list. Is there a limit to the number of nested lists in GitHub flavored markdown?

1. item 1

    * item 1.1
    * item 1.2

1. item 2

    * item 2.1

    1. item 2.1.1
    1. item 2.1.2

        * item 2.1.2.1
        * item 2.1.2.2

Each level of indent should use the same number of spaces. For the subitems under item 1 use appear to be using 4 spaces. However, for the first level of indent under item 2 you only use 3 (rather than 4), for the second level of indent you are only using 5 (rather than 8), and for the third level you are using 8 (rather than 12). If you adjust your indentation, then you should not have any more issues.

1. item 1

    * item 1.1
    * item 1.2

1. item 2

    * item 2.1

        1. item 2.1.1
        1. item 2.1.2

            * item 2.1.2.1
            * item 2.1.2.2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM