'Markdown nested list with custom style possible?
I use a markdown editor and there I need a list formation according to certain rules.
A.
I.
1.
a)
aa)
(1)
(a)
(aa)
To implement this, I added the following to the css file.
<style type="text/css">
ol {list-style-type: upper-alpha;}
ol ol { list-style-type: upper-alpha;}
ol ol { list-style-type: upper-roman;}
ol ol ol { list-style-type: decimal;}
ol ol ol { list-style-type: lower-latin;}
ol ol ol ol { list-style-type: decimal;}
ol ol ol ol { list-style-type: upper-roman;}
</style>
This way I can basically create a nested list. But now I want for example that level 6 have brackets before and after the letter.
I know that this is possible by using something like that:
ol {
counter-reset: list;
}
ol > li {
list-style: none;
}
ol > li:before {
content: counter(list, lower-alpha) ") ";
counter-increment: list;
}
But I am working with different layers and want to apply the change to only one layer at a time.
Can someone perhaps give me a tip on how I can implement this.
With kind regards
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
