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
37 lines
1.0 KiB
TOML
37 lines
1.0 KiB
TOML
[workspace]
|
|
members = ["server"]
|
|
resolver = "3"
|
|
|
|
[workspace.dependencies]
|
|
async-stream = "0.3"
|
|
async-trait = "0.1.89"
|
|
bytes = "1"
|
|
chrono = { version = "0.4.44", features = ["serde"] }
|
|
eventsource-stream = "0.2.3"
|
|
futures = "0.3"
|
|
homedir = "0.3.6"
|
|
ignore = "0.4.25"
|
|
mime_guess = "2"
|
|
notify = "8.2.0"
|
|
poem = { version = "3", features = ["websocket", "test"] }
|
|
poem-openapi = { version = "5", features = ["swagger-ui"] }
|
|
portable-pty = "0.9.0"
|
|
reqwest = { version = "0.13.2", features = ["json", "stream"] }
|
|
rust-embed = "8"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_yaml = "0.9"
|
|
strip-ansi-escapes = "0.2"
|
|
tempfile = "3"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync"] }
|
|
toml = "1.0.3+spec-1.1.0"
|
|
uuid = { version = "1.21.0", features = ["v4", "serde"] }
|
|
tokio-tungstenite = "0.28.0"
|
|
walkdir = "2.5.0"
|
|
filetime = "0.2"
|
|
matrix-sdk = { version = "0.16.0", default-features = false, features = [
|
|
"native-tls",
|
|
"sqlite",
|
|
] }
|
|
pulldown-cmark = { version = "0.12", default-features = false, features = ["html"] }
|