Skip to content

Instantly share code, notes, and snippets.

@slgraff
Created September 29, 2022 14:26
Show Gist options
  • Save slgraff/9d107d20d32d4fb7959ba32613fbcc1c to your computer and use it in GitHub Desktop.
Save slgraff/9d107d20d32d4fb7959ba32613fbcc1c to your computer and use it in GitHub Desktop.

This is a test of using HTML lists, with different numbering/lettering types, in a GitHub markdown document.

This HTML list code:

<ol type="a">
    <li><strong>Text</strong></li>
    <li><strong>Written</strong></li>
        <ol type="1">
            <li>Hello</li>
            <li>Testing bug</li>
                <ol type="A">
                    <li>Random thing</li>
                    <li>Still random</li>
                </ol>
        </ol>
</ol>

Renders like this on GitHub:

  1. Text
  2. Written
    1. Hello
    2. Testing bug
      1. Random thing
      2. Still random

Note that both the top level list, and third level list, both use lower-case lettering, though upper-case is specified for the third level list.

Here is a test specifying both upper-case and lower-case roman numerals.

<ol type="I">
    <li><strong>Text</strong></li>
    <li><strong>Written</strong></li>
        <ol type="1">
            <li>Hello</li>
            <li>Testing bug</li>
                <ol type="i">
                    <li>Random thing</li>
                    <li>Still random</li>
                </ol>
        </ol>
</ol>

But lower-lettering is used for both:

  1. Text
  2. Written
    1. Hello
    2. Testing bug
      1. Random thing
      2. Still random
@graffbagTEST
Copy link

woohoo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment