wip
This commit is contained in:
parent
7dafc3c1e4
commit
72dac49878
7 changed files with 119 additions and 239 deletions
|
@ -57,6 +57,15 @@ def github_style_admonition(text):
|
|||
return '\n'.join(result_lines)
|
||||
|
||||
|
||||
# Register template filters
|
||||
@bp.app_template_filter('github_style_admonition')
|
||||
def github_style_admonition_filter(text):
|
||||
"""Template filter version of github_style_admonition"""
|
||||
if text is None:
|
||||
return ""
|
||||
return github_style_admonition(text)
|
||||
|
||||
|
||||
@bp.app_template_filter("markdown")
|
||||
def markdown_filter(text):
|
||||
"""Convert markdown text to HTML with proper GitHub styling for all elements"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue