When writing Markdown, how do I use roman numerals in deeply nested lists? #124850
Unanswered
Jayman2000
asked this question in
General
Replies: 1 comment 2 replies
-
Hi @Jayman2000 , I don't know if there's a practical way to do it, one solution I can think of would be to manually write the Roman numerals, I know it's a rather unorthodox way but it's the only solution I can think of to be honest:
1. Step
- Small note.
- Very large note:
1. Step
i. nested roman numeral
ii. nested roman numeral
iii. nested roman numeral
2. Step
i. nested roman numeral
ii. nested roman numeral
iii. nested roman numeral
iv. nested roman numeral
2. Step
- Small note.
- Very large note:
1. Step
i. nested roman numeral
ii. nested roman numeral
iii. nested roman numeral
iv. nested roman numeral
v. nested roman numeral
2. Step
i. nested roman numeral
ii. nested roman numeral
iii. nested roman numeral In an
<ol>
<li>Step
<ul>
<li>Small note.</li>
<li>Very large note:
<ol>
<li>Step
<ol type="i">
<li>nested roman numeral</li>
<li>nested roman numeral</li>
<li>nested roman numeral</li>
</ol>
</li>
<li>Step
<ol type="i">
<li>nested roman numeral</li>
<li>nested roman numeral</li>
<li>nested roman numeral</li>
<li>nested roman numeral</li>
</ol>
</li>
</ol>
</li>
</ul>
</li>
<li>Step
<ul>
<li>Small note.</li>
<li>Very large note:
<ol>
<li>Step
<ol type="i">
<li>nested roman numeral</li>
<li>nested roman numeral</li>
<li>nested roman numeral</li>
<li>nested roman numeral</li>
<li>nested roman numeral</li>
</ol>
</li>
<li>Step
<ol type="i">
<li>nested roman numeral</li>
<li>nested roman numeral</li>
<li>nested roman numeral</li>
</ol>
</li>
</ol>
</li>
</ul>
</li>
</ol> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
I’m currently working on improving a project’s installation instructions. The instructions are rather complicated, so I want to organize them into nested lists. I want those nested lists to use different numbering schemes like this:
Unfortunately, I’m having trouble getting the roman numerals to work.
Attempt 1
First, I tried writing Markdown like this:
Here’s how GitHub renders that Markdown:
The problem here is that all of the sublists inside the very large note use letters. None of them use Roman or Arabic numerals.
Attempt 2
After that, I tried embedding raw HTML in the Markdown:
Here’s how GitHub renders that Markdown:
Small note.
Very large note:
Step
Step
Step
The problem here is that one of the lists uses letters even though I told it to use Roman numerals. When I inspect the generated HTML, I can see that the
ol
elements do indeed havetype
attributes. For whatever reason, settingtype
toi
doesn’t work for deeply nested lists.Attempt 3
After that, I tried using the
style
attribute:Here’s how GitHub renders that Markdown:
Small note.
Very large note:
Step
Step
Step
The problem here is that all of the sublists inside the very large note use letters again. When I inspect the generated HTML, I can see that the
ol
elements don’t havestyle
attributes because GitHub explicitly removes them.Conclusion
At this point, I’m out of ideas. How do I use Roman numerals in deeply embedded lists?
Beta Was this translation helpful? Give feedback.
All reactions