Exemplo n.º 1
0
def dbc_markup(txt, obj=None):
    "Apply Dynamic Blog Context markup"
    md = Markdown(txt,
                  extensions=[mdx_footnotes,
                              mdx_code,
                              mdx_foreign_formats,
                              mdx_lifeflow],
                  extension_configs={'lifeflow':obj},
                  )
    return md.convert()
Exemplo n.º 2
0
def entry_markdown(txt,obj=None):
    exts = (mdx_code, mdx_footnotes,mdx_foreign_formats, mdx_lifeflow)
    md = Markdown(txt,extensions=exts,extension_configs={'lifeflow':obj})
    return md.convert()
Exemplo n.º 3
0
def comment_markdown(txt,obj=None):
    exts = (mdx_code,)
    md = Markdown(txt,extensions=exts,safe_mode="escape")
    return md.convert()
Exemplo n.º 4
0
def comment_markup(txt, obj=None):
    md = Markdown(txt, extensions=[mdx_code])
    return md.convert()