noteworthy icon indicating copy to clipboard operation
noteworthy copied to clipboard

[Markdown] Pro / Con Lists

Open benrbray opened this issue 4 years ago • 1 comments

The transition from markdown-it to remark required temporarily disabling pro/con lists. Restoring them will require a custom extension to mdast that reads the listItemMarker tokens produced by micromark, and adds them to the mdast syntax trees.

Based on the code at mdast-util-from-markdown, it looks like mdast plugins can override existing node enter/exit handlers.

winter
+ snowmen
+ sledding
- cold
- dark

benrbray avatar May 18 '21 17:05 benrbray

This should have been fixed by my remark-concrete plugin added by #13 . The corresponding test cases pass. At the moment, pro/con lists are parsed/serialized correctly, but any new pro/con lists created in the ProseMirror editor are serialized as regular lists. Needs further investigation.

benrbray avatar Jun 04 '21 16:06 benrbray