Begin ordered list from 0 in Markdown

后端 未结 4 1228
野趣味
野趣味 2021-02-05 01:57

I\'m new to Markdown. I was writing something like:

#Table of Contents  
0. Item 0  
1. Item 1  
2. Item 2

But that generates:

4条回答
  •  别那么骄傲
    2021-02-05 02:49

    Simply: NO

    Longer: YES, BUT

    When you create ordered list in Markdown it is parsed to HTML ordered list, i.e.:

    # Table of Contents
    
    0. Item 0  
    1. Item 1  
    2. Item 2
    

    Will create:

    Table of Contents

    1. Item 0
    2. Item 1
    3. Item 2

    So as you can see, there is no data about starting number. If you want to start at certain number, unfortunately, you have to use pure HTML and write:

    1. Item 0
    2. Item 1
    3. Item 2

提交回复
热议问题