tui.editor icon indicating copy to clipboard operation
tui.editor copied to clipboard

Ordered List with Start Number

Open oraculum opened this issue 4 years ago • 4 comments

I would like to request a function to list numbered order.

In commonmark has a spec about Start Number List order. Screen Shot 2021-12-29 at 11 53 27

something like this

Screen Shot 2021-12-29 at 11 55 32

I try this in my tui.editor but it's not working

Screen Shot 2021-12-29 at 11 56 42

in preview

Screen Shot 2021-12-29 at 11 56 48

it would be nice to have this feature suggested by CommonMark Spec

oraculum avatar Dec 29 '21 14:12 oraculum

@oraculum Sorry for late replying. The cause of this problem is that we use the pseudo element to style list numbers. I'll think about how to improve this issue. Thank you for the report!

js87zz avatar Jan 05 '22 01:01 js87zz

Rendering a list that starts with a bigger number than 1 results in "1." being shown regardless. Why are you using pseudo elements in the first place? Removing the corresponding styles and resetting the ol's list-style-type seems to work fine at first glance. This should also be classified as a critical bug as it actually changes the content.

timesqueezer avatar Jun 29 '22 14:06 timesqueezer