Open gaolingep opened 4 years ago
the following css in markdown bring headline increse index / For headline index. by gl / :root { counter-reset:counter_h1;counter_h2; }
h1 { counter-increment: counter_h1; counter-reset:counter_h2; } h1::before { content: counter(counter_h1)"、"; } h2 { counter-increment: counter_h2; } h2::before { content: counter(counter_h1)"."counter(counter_h2)"、"; }
# a ## b ## c # e
get the effect
1a 1.1b 1.2c 2e
but still have a bug when handleing split markdown cell.
the following css in markdown bring headline increse index / For headline index. by gl / :root { counter-reset:counter_h1;counter_h2; }
h1 { counter-increment: counter_h1; counter-reset:counter_h2; } h1::before { content: counter(counter_h1)"、"; } h2 { counter-increment: counter_h2; } h2::before { content: counter(counter_h1)"."counter(counter_h2)"、"; }
get the effect
but still have a bug when handleing split markdown cell.