jlvandenhout / docusaurus-plugin-docs-editor

56 stars 13 forks source link

Create Markdown from the edited HTML #7

Closed jlvandenhout closed 3 years ago

jlvandenhout commented 3 years ago

TipTap uses HTML directly to render the page content and implement its editor interface, however the source files are in Markdown, so we need a way to convert HTML to Markdown to create a useful pull request. The reMarked.js library might be an option.

jlvandenhout commented 3 years ago

Currently it is implemented with a Unified pipeline using Rehype and Remark plugins to go back and forth between HTML and Markdown. Using vanilla settings, the input and ouput Markdown differ even if nothing is changed. I opened a separate issue to resolve this here: #16.