Enable sending strikethrough text (#141)

This commit is contained in:
Ulyssa 2023-09-12 17:27:04 -07:00
parent 7fdb5f98e3
commit c7864cb869
No known key found for this signature in database
GPG key ID: F2873CA2997B83C5

View file

@ -98,6 +98,7 @@ const TIME_GUTTER_EMPTY_SPAN: Span<'static> = span_static(TIME_GUTTER_EMPTY);
fn text_to_message_content(input: String) -> TextMessageEventContent { fn text_to_message_content(input: String) -> TextMessageEventContent {
let mut options = ComrakOptions::default(); let mut options = ComrakOptions::default();
options.extension.shortcodes = true; options.extension.shortcodes = true;
options.extension.strikethrough = true;
options.render.hardbreaks = true; options.render.hardbreaks = true;
let html = markdown_to_html(input.as_str(), &options); let html = markdown_to_html(input.as_str(), &options);