mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
GFM without the tagfilter extension
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import cmarkgfm
|
import cmarkgfm
|
||||||
from cmarkgfm.cmark import Options as MarkdownOptions
|
|
||||||
import six
|
import six
|
||||||
from flask import current_app as app
|
from flask import current_app as app
|
||||||
|
|
||||||
@@ -14,7 +13,9 @@ else:
|
|||||||
text_type = str
|
text_type = str
|
||||||
binary_type = bytes
|
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):
|
def get_app_config(key, default=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user