Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Add ability to output html and markdown formatted specifically for message content #679

@artcodespace

Description

@artcodespace

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)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions