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.
This commit is contained in:
Milan Crha 2022-01-26 12:35:29 +01:00
parent d9279e5e71
commit ed56f8d8c2

View File

@ -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);