Beispiel #1
0
def make_md_engine(key, opts):
    md_engines[key] = markdown.Markdown(
        safe_mode     = 'escape',
        output_format = 'html',
        extensions    = ['nl2br',
                         'tables',
                         codehilite.makeExtension(configs=[
                    ('force_linenos', False),
                    ('guess_lang',    False)]),
                         fenced_code.makeExtension(),
                         Bugdown(opts)])
Beispiel #2
0
def make_md_engine(key, opts):
    md_engines[key] = markdown.Markdown(
        safe_mode     = 'escape',
        output_format = 'html',
        extensions    = ['nl2br',
                         'tables',
                         codehilite.makeExtension(configs=[
                    ('force_linenos', False),
                    ('guess_lang',    False)]),
                         fenced_code.makeExtension(),
                         Bugdown(opts)])
Beispiel #3
0
def make_md_engine(key, opts):
    md_engines[key] = markdown.Markdown(
        safe_mode="escape",
        output_format="html",
        extensions=[
            "nl2br",
            "tables",
            codehilite.makeExtension(configs=[("force_linenos", False), ("guess_lang", False)]),
            fenced_code.makeExtension(),
            Bugdown(opts),
        ],
    )