1
0
Fork 0

Describe pymarkdown extensions

This commit is contained in:
Tim Van Baak 2023-12-18 09:50:25 -08:00
parent b686140ad3
commit 63893b0f2e
1 changed files with 10 additions and 1 deletions

View File

@ -20,7 +20,16 @@ def main():
src = pathlib.Path("src")
out = pathlib.Path(args.out)
md = markdown.Markdown(extensions=["attr_list", "footnotes", "md_in_html", "meta"])
md = markdown.Markdown(extensions=[
# Set HTML attributes with {#id}
"attr_list",
# Footnotes [^1]
"footnotes",
# Parse markdown within HTML[markdown] blocks
"md_in_html",
# "YAML" frontmatter metadata
"meta",
])
comment_md = markdown.Markdown()
# Map of feed url -> FeedGenerator object