jlvandenhout / docusaurus-plugin-docs-editor

57 stars 13 forks source link

Configure remark and rehype to render Markdown correctly #16

Open jlvandenhout opened 3 years ago

jlvandenhout commented 3 years ago

Currently the Markdown output that the editor produces differs from the original Markdown input, even when nothing is changed. The goal is to configure the HTML to Markdown pipeline such that it produces similar output if nothing is changed.

A list of inconsistencies that need to be fixed:

jlvandenhout commented 3 years ago

To configure serialization to Markdown, have a look here

jlvandenhout commented 3 years ago

To allow highlighted code blocks and maintain editability we could follow the TipTap example here. Preserving information throughout the process of getting from Markdown to HTML and back to Markdown is still a challenge, especially the arguments following the first fence of the code block.