feat(matrix): render bot messages with HTML formatting

Add HTML formatted_body to Matrix bot messages so that markdown-style
formatting (code blocks, bold, italic, lists) renders properly in Matrix
clients. Uses the pulldown-cmark crate to convert markdown to HTML and
sets the message format to org.matrix.custom.html.

Story: 188_story_render_matrix_bot_messages_with_html_formatting
This commit is contained in:
Dave
2026-02-25 16:08:57 +00:00
parent cda7915e12
commit d4f23051aa
4 changed files with 81 additions and 1 deletions

View File

@@ -33,3 +33,4 @@ matrix-sdk = { version = "0.16.0", default-features = false, features = [
"native-tls",
"sqlite",
] }
pulldown-cmark = { version = "0.12", default-features = false, features = ["html"] }