This commit is contained in:
pika 2025-03-31 10:32:30 +02:00
parent 7dafc3c1e4
commit 72dac49878
7 changed files with 119 additions and 239 deletions

View file

@ -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"""