edit-text icon indicating copy to clipboard operation
edit-text copied to clipboard

Support ordered lists

Open tcr opened this issue 7 years ago • 0 comments
trafficstars

This is slightly different than just duplicating the "bullet" tag to be something new, because it actually should change all adjacent tags to be a series of "enumerated" tags. But that would conflict with the transform logic, which would want to preserve intermediary insertions or joining of bullets into being bullet tags.

Changing a single parent tag at once (like a <ul> or <ol>) would be a more correct way to do this. I forget why that wasn't chosen except to avoid the problem of disjoint transforms not supporting being merged. But actually... that's the reason.

Also there has to be successive bullet information preserved anyway, such as when a list starts with a numeral other than 1. So it's either first bullet + all successive bullets being rendered as if they were joined on the client, or 2. supporting <ul> and <ol> and figuring out a disjoint transform fix.

tcr avatar Apr 12 '18 04:04 tcr