from google.appengine.ext import webapp
from django.utils.safestring import mark_safe
import markdown as markdown_module

register = webapp.template.create_template_register()

MARKDOWN_EXTENSIONS = ('codehilite', 'fenced_code')

def markdown(s):
    """Formats the text with Markdown syntax.

    Removes any HTML in the source text.
    """
    md = markdown_module.Markdown(MARKDOWN_EXTENSIONS, safe_mode='remove')
    return mark_safe(md.convert(s))
register.filter(markdown)

edc7865273897a2456f5f1c1771d57dc7969b2b1
<mask token>


def markdown(s):
    """Formats the text with Markdown syntax.

    Removes any HTML in the source text.
    """
    md = markdown_module.Markdown(MARKDOWN_EXTENSIONS, safe_mode='remove')
    return mark_safe(md.convert(s))


<mask token>

<mask token>


def markdown(s):
    """Formats the text with Markdown syntax.

    Removes any HTML in the source text.
    """
    md = markdown_module.Markdown(MARKDOWN_EXTENSIONS, safe_mode='remove')
    return mark_safe(md.convert(s))


register.filter(markdown)

<mask token>
register = webapp.template.create_template_register()
MARKDOWN_EXTENSIONS = 'codehilite', 'fenced_code'


def markdown(s):
    """Formats the text with Markdown syntax.

    Removes any HTML in the source text.
    """
    md = markdown_module.Markdown(MARKDOWN_EXTENSIONS, safe_mode='remove')
    return mark_safe(md.convert(s))


register.filter(markdown)

from google.appengine.ext import webapp
from django.utils.safestring import mark_safe
import markdown as markdown_module
register = webapp.template.create_template_register()
MARKDOWN_EXTENSIONS = 'codehilite', 'fenced_code'


def markdown(s):
    """Formats the text with Markdown syntax.

    Removes any HTML in the source text.
    """
    md = markdown_module.Markdown(MARKDOWN_EXTENSIONS, safe_mode='remove')
    return mark_safe(md.convert(s))


register.filter(markdown)

from google.appengine.ext import webapp
from django.utils.safestring import mark_safe
import markdown as markdown_module

register = webapp.template.create_template_register()

MARKDOWN_EXTENSIONS = ('codehilite', 'fenced_code')

def markdown(s):
    """Formats the text with Markdown syntax.

    Removes any HTML in the source text.
    """
    md = markdown_module.Markdown(MARKDOWN_EXTENSIONS, safe_mode='remove')
    return mark_safe(md.convert(s))
register.filter(markdown)
