You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 27, 2024. It is now read-only.
We have discussed on multiple occasions the benefits of creating and exposing a function that would allow us to output the html and markdown from the Rust model but specifically for sending as message content.
This issue records some of the things we think it should do, noting that some of these approaches may change depending on other design decisions: HTML output (to attach to formatted body)
remove empty <p> tags from the message (ie <p> </p>), which we currently use to represent an empty paragraph that the user may potentially put their cursor inside whilst editing Add functions to get content in clean message format #686
replace the inner text of a room mention link with the mxId (think this is what the spec dictates, should this be the same for users?)
Markdown output (to attach to body)
replace mention link representations with just the mxId, prefixed with @ or # as appropriate
There may be more work required, but this is what we've come across so far.
### Tasks
- [x] https://github.com/matrix-org/matrix-rich-text-editor/pull/686
- [ ] Expose new get_content_as_message_html() function from platform libraries