From ed56f8d8c27ce9b40cfbb22ffd0c4a342e5edd18 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 26 Jan 2022 12:35:29 +0100 Subject: [PATCH] text/markdown formatter: Allow HTML tags in the markdown Keep the HTML tags in the markdown during the conversion to the HTML. If there's also any JavaScript, then it's removed on the WebKitGTK side. --- src/em-format/e-mail-formatter-text-markdown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/em-format/e-mail-formatter-text-markdown.c b/src/em-format/e-mail-formatter-text-markdown.c index 015d41bc6a..c73b90ecca 100644 --- a/src/em-format/e-mail-formatter-text-markdown.c +++ b/src/em-format/e-mail-formatter-text-markdown.c @@ -68,7 +68,7 @@ emfe_text_markdown_format (EMailFormatterExtension *extension, html = cmark_markdown_to_html ((const gchar *) g_memory_output_stream_get_data (G_MEMORY_OUTPUT_STREAM (output_stream)), g_memory_output_stream_get_data_size (G_MEMORY_OUTPUT_STREAM (output_stream)), - CMARK_OPT_VALIDATE_UTF8); + CMARK_OPT_VALIDATE_UTF8 | CMARK_OPT_UNSAFE); g_object_unref (output_stream); g_object_unref (mime_part);