TW5-CodeMirror-Enhanced
TW5-CodeMirror-Enhanced copied to clipboard
list levels parsing
The list level parsing returns a class that is 'list' plus one of 'keyword', 'variable-2' or 'variable-3'. This means that in order to style a level 1 list, need to match .list.keyword, in order to match level 2 list need to use .list.variable-2, similarly for level 3, for level 4 there is no match and it'll match .list.keyword.
This makes it order to style lists with indentation (as cmplus does).
I suggest maybe having a 'level-' class and not use 'keyword', 'variable-2', 'variable-3' (not sure of their use case, but the names are confusing for this one)
Don't quite understand this too.