Skip to content

Conversation

@Soxasora
Copy link
Member

@Soxasora Soxasora commented Nov 26, 2025

Description

Based on #2501
This is the first stage of the transition to a new Lexical-based editor.

Introduces a Lexical plain text editor with a rich text preview, using MDAST to map and transform Lexical nodes to markdown, aiming to provide lossless transformations.

This PR focuses on providing the same editor experience as before, while transitioning to Lexical.

Screenshots

Additional Context

Persisting and handling the tree in the database is still something that's being conceptualized, but like the original PR, we'll persist the lexical JSON state and its HTML variant.

WIP: More infos on MDAST can be found in docs/dev/lexical-mdast.md

Checklist

Are your changes backward compatible? Please answer below:
Yes, with a distributed migration approach we're going to migrate legacy content while still keeping its original version right in the text field.

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:
5 - in dev with iterative QA

For frontend changes: Tested on mobile, light and dark mode? Please answer below:
In QA

Did you introduce any new environment variables? If so, call them out explicitly here:
n/a

Did you use AI for this? If so, how much did it assist you?
Lexical: Ask mode to bridge the gaps in the documentation
MDAST: Light usage of Agent mode for refactoring and ensuring every transformer is well-represented

…nsible MDAST transformer for lossless conversions
@socket-security
Copy link

socket-security bot commented Nov 26, 2025

@Soxasora Soxasora changed the title Lexical Plain Text Editor with Lexical Rich Text preview; custom exte… Markdown editor with Rich Text preview via MDAST Nov 26, 2025
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