Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTE does WAY too many conversions #4679

Closed
lukebarnard1 opened this issue Jul 26, 2017 · 1 comment
Closed

RTE does WAY too many conversions #4679

lukebarnard1 opened this issue Jul 26, 2017 · 1 comment

Comments

@lukebarnard1
Copy link
Contributor

lukebarnard1 commented Jul 26, 2017

We have had many discussions that end up with us wishing that the draft-js editor always represented the same message with the same underlying AST (= Abstract Syntax Tree) regardless of whether markdown mode is enabled. Currently we have problems such as:

Options:

  • Always use one format (either markdown or rich)
  • Always use markdown but then use clever decorators to make it look rich when we're in RT mode
  • Always use richtext but use clever decorators to make it look like markdown when we're in MD mode

See this diagram for full awfulness:
ima_0f6318f

@ara4n
Copy link
Member

ara4n commented Jul 16, 2018

Slate does fewer conversions, and I think its behaviour is justified; so fixed in matrix-org/matrix-react-sdk#1890. You can see the equivalent of the above diagram over at https://github.com/matrix-org/matrix-react-sdk/blob/develop/docs/slate-formats.md

@ara4n ara4n closed this as completed Jul 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants