From c7864cb8697ff8220c0728b871d123a037f53cf3 Mon Sep 17 00:00:00 2001 From: Ulyssa Date: Tue, 12 Sep 2023 17:27:04 -0700 Subject: [PATCH] Enable sending strikethrough text (#141) --- src/message/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/message/mod.rs b/src/message/mod.rs index b00c82c..299ea44 100644 --- a/src/message/mod.rs +++ b/src/message/mod.rs @@ -98,6 +98,7 @@ const TIME_GUTTER_EMPTY_SPAN: Span<'static> = span_static(TIME_GUTTER_EMPTY); fn text_to_message_content(input: String) -> TextMessageEventContent { let mut options = ComrakOptions::default(); options.extension.shortcodes = true; + options.extension.strikethrough = true; options.render.hardbreaks = true; let html = markdown_to_html(input.as_str(), &options);