mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 22:44:24 +01:00
GFM without the tagfilter extension
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user