Moeditor icon indicating copy to clipboard operation
Moeditor copied to clipboard

CSS counters doesn't work

Open sniton opened this issue 9 years ago • 1 comments

Hi,

I'm trying to use CSS counters for automaticaly numbering of headers of my document, but it doesn't work (in live render and export).

Thanks

CSS in my theme :

`body {counter-reset: h2} h2 {counter-reset: h3} h3 {counter-reset: h4} h4 {counter-reset: h5} h5 {counter-reset: h6}

h2:before {counter-increment: h2; content: counter(h2) ". "} h3:before {counter-increment: h3; content: counter(h2) "." counter(h3) ". "} h4:before {counter-increment: h4; content: counter(h2) "." counter(h3) "." counter(h4) ". "} h5:before {counter-increment: h5; content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". "} h6:before {counter-increment: h6; content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". "}`

sniton avatar Sep 20 '16 10:09 sniton

screenshot from 2016-10-01 21 17 28

I am using Custom CSS and it just works.

Maybe you forgot to select the css item to enable it?

Menci avatar Oct 01 '16 13:10 Menci