clld / clld-markdown-plugin

Render CLDF markdown in clld apps
Apache License 2.0
0 stars 0 forks source link

Handling markdown extensions #5

Closed fmatter closed 1 year ago

fmatter commented 1 year ago

I've grown the list of used extensions quite a bit, due to the rather complex document I am getting from pylingdocs:

    md = Markdown(
        extensions=[
            TocExtension(permalink=permalink),
            "markdown.extensions.fenced_code",
            "markdown.extensions.md_in_html",
            "markdown.extensions.tables",
            "markdown.extensions.attr_list",
            "markdown.extensions.footnotes",
        ]
    )

Right now I was going to add this subscript extension, which got me thinking: 1) the markdown function should optionally accept a list of extensions 2) maybe some of the extensions above should not be used by default?

xrotwang commented 1 year ago

I reallize that everything I said at https://github.com/clld/clld-markdown-plugin/pull/7#discussion_r1011287128 should go here. So yes, I agree with

xrotwang commented 1 year ago

see #7