Skip to content

Markdown tags

hypha.apply.funds.templatetags.markdown_tags

register module-attribute

register = Library()

markdown

markdown(value)
Source code in hypha/apply/funds/templatetags/markdown_tags.py
@register.filter
def markdown(value):
    return markdown_to_html(value)

to_markdown

to_markdown(value)
Source code in hypha/apply/funds/templatetags/markdown_tags.py
@register.filter
def to_markdown(value):
    # pass through markdown to ensure comment is a
    # fully formed HTML block
    value = markdown_to_html(value)
    return tomd.convert(value)