[evolution] text/markdown formatter: Allow HTML tags in the markdown



commit ed56f8d8c27ce9b40cfbb22ffd0c4a342e5edd18
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jan 26 12:35:29 2022 +0100

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]