Skip to content

Add raw markdown mode toggle to toolbar#543

Draft
aviflombaum wants to merge 1 commit intobasecamp:mainfrom
aviflombaum:feat/raw-markdown
Draft

Add raw markdown mode toggle to toolbar#543
aviflombaum wants to merge 1 commit intobasecamp:mainfrom
aviflombaum:feat/raw-markdown

Conversation

@aviflombaum
Copy link

Add Raw Markdown Support

  • Toggle between rich text and raw markdown editing via toolbar button
  • Uses Lexical's built-in $convertToMarkdownString/$convertFromMarkdownString
  • Button shows pressed state when in markdown mode
  • Form submit syncs markdown to HTML before submission
  • Handles Turbo cache by resetting to rich text mode

CleanShot 2026-01-06 at 13 24 57

  - Toggle between rich text and raw markdown editing via toolbar button
  - Uses Lexical's built-in $convertToMarkdownString/$convertFromMarkdownString
  - Button shows pressed state when in markdown mode
  - Form submit syncs markdown to HTML before submission
  - Handles Turbo cache by resetting to rich text mode
@aviflombaum
Copy link
Author

There is a slight issue tbh. In theory, when you are in Raw Markdown mode, the Lexxy toolbar should still work by inserting proper markdown syntax. Once in raw markdown, the Lexxy toolbar won't add markdown syntax to the plain text. Maybe that's okay, but it is certainly something we could add.

@richjdsmith
Copy link

Stoked to see this @aviflombaum. Hope it gets merged, or some version of it.

@aviflombaum aviflombaum marked this pull request as draft February 9, 2026 12:50
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.

2 participants

Comments