venthur / blag

blag is a blog-aware, static site generator -- it uses Markdown and is written in Python.
https://blag.readthedocs.io
MIT License
69 stars 7 forks source link

Footnote in markdown files #215

Open Pinkilla opened 6 months ago

Pinkilla commented 6 months ago

hello,

thanks a lot for your service.

I test it. I use a lot of footnotes and there are not render in html file. do you know why ?
is this correct ?

Quasi nobis adipisci similique est molestiae[^f] omnis sequi. Doloribus sed exercitationem 
et sed dicta. Eveniet aliquam et et voluptatem ut sunt doloremque rerum.

[^f]: Footnote content

thanks.

Pinkilla commented 6 months ago

hi again,

I find a solution. in file markdown.py at line 40, just add support for footnotes.

 md = Markdown(
        extensions=[
            "meta",
            "fenced_code",
            "codehilite",
            "smarty",
            "footnotes",  # <--- here
            MarkdownLinkExtension(),
        ],
        output_format="html",
    )
    return md

could you please adding this for next release ?

thanks a lot.