mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 13:49:52 -07:00
Enable sending strikethrough text (#141)
This commit is contained in:
parent
7fdb5f98e3
commit
c7864cb869
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue