markdown

How do you make lettered lists using markdown?


Markdown allows ordered lists using numbers. How can I instead get an ordered list using letters? i.e.

A. the letter A
B. the letter B
C. etc

instead of

1. the number 1
2. the number 2
3. etc.

Solution

  • It doesn't appear that standard Markdown has this capability. You can:

    1. Use CSS, by putting this somewhere in your markdown document (note, this will effect all ordered lists in the document)
    <style type="text/css">
        ol { list-style-type: upper-alpha; }
    </style>
    
    1. Use an extended version of markdown. Pandoc markdown has a fancy_lists extension that will allow you to mark lists with letters and roman numerals.

    Note: if using capital letters, two spaces are required before the text. See https://pandoc.org/MANUAL.html#fn1

    A.  the letter A
    A.  the letter B
    A.  etc