Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@geoMJ
Copy link

@geoMJ geoMJ commented Sep 23, 2025

This is related to #286, which was about switching to "markdown mode" when editing content with the rich text field. The feature allows the user to see the resulting markdown, and edit the file like this if they want to, then go back to rich-text mode or just save the file directly.

Note : for when the text is rendered in the markdown editor, I set the bullet list marker to "-" because I assumed that's what people generally use. I left default italics indicator ("_") and ** for bold text (but I personally prefer a single * for italics). Images and tables work as expected. Let me know if something was forgotten.

The group has a "rich text" and "markdown" buttons to chose which editor to display
Making sure RHF registers changes made from the markdown editor. If the value is not updated properly, we can't save directly without toggeling back the rich text editor and manually modifying the input's value.

Also, now we don't re-set the rich text editor's html content for every change made in the MD editor. We do it only when switching back to rich text editing mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant