Open astrocket opened 11 months ago
Case 2 is the correct HTML structure, see https://stackoverflow.com/a/5899394/595152
@bettysteger I agree, but it is used in real world and users have been pasting that format so I thought it would be nice to support both.
This occurs when pasting from Notes on macOS. Would be great to support both ways! (and maybe always output as the valid HTML structure?)
Edit: commented with a patch on https://github.com/editor-js/nested-list/pull/65#issuecomment-2025517773 that solved this problem and the one in that PR for me.
@skovy @astrocket Any updates on this being merged?
@neSpecc Can this be merged? or any comment?
Current version of nested-list can render Case 2 style only.
This PR refactors
pasteHandler
to support Case 1, Case 2 and Mix of each cases.