From d88c52936734aec6c5ecfc489653794ae255c40e Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Fri, 29 May 2020 17:11:18 -0400 Subject: [PATCH] GFM without the tagfilter extension --- CTFd/utils/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CTFd/utils/__init__.py b/CTFd/utils/__init__.py index 8d47b9d6..c0dc7c96 100644 --- a/CTFd/utils/__init__.py +++ b/CTFd/utils/__init__.py @@ -1,5 +1,4 @@ import cmarkgfm -from cmarkgfm.cmark import Options as MarkdownOptions import six from flask import current_app as app @@ -14,7 +13,9 @@ else: text_type = str binary_type = bytes -markdown = cmarkgfm.markdown_to_html +markdown = lambda md: cmarkgfm.markdown_to_html_with_extensions( + md, extensions=["autolink", "table", "strikethrough"] +) def get_app_config(key, default=None):