Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown ordered list sub-items numbers, letters, etc. #258

Open
prowlett opened this issue Sep 12, 2024 · 0 comments
Open

Markdown ordered list sub-items numbers, letters, etc. #258

prowlett opened this issue Sep 12, 2024 · 0 comments

Comments

@prowlett
Copy link

This Markdown code:

1. First item

    1. First sub-item

        1. Now a sub-sub-item
        2. And another

    2. Second sub-item
    3. Third sub-item

2. Now item 2
3. And a third

Produces this:

image

I realise this is exactly what I asked it for, but for me there are too many item 1s (etc.) and I think there isn't a way to tell Markdown to do anything else for sub-items. Is there a way to get something like "a.", "b.", "c." for the sub-items?

For example, something like this doesn't work.

1. First item

    a. First sub-item

        i. Now a sub-sub-item
        ii. And another

    b. Second sub-item
    c. Third sub-item

2. Now item 2
3. And a third

Here's something that works by adding in HTML.

1. First item

    <ol type="a">
        <li>First sub-item
        <ol type="i">
            <li>Now a sub-sub-item</li>
            <li>And another</li>
        </ol>
        </li>
        <li>Second sub-item</li>
        <li>Third sub-item</li>
    </ol>

2. Now item 2
3. And a third

I think this is in the sphere of 'Markdown doesn't work like that'. However, I think I've thought about reporting this a couple of times and I thought having it in the issues (even as a closed one) for people to find might be useful. I think the problem of sub-items in, say, exercise lists is a common enough occurrence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant