taika.ext.markdown
– Markdown¶
This extension parses the content of the documents into HTML using CommonMarkdown specifications.
Trigger¶
This extension is subscribed to the “doc-post-read” event.
Frontmatter¶
None.
Process¶
- Reads the suffix of path and if it matches, process the document.
- Modifies the suffix of url path to “.html”.
- Process the content with marko.convert and replaces it.
- Done!
Configuration¶
All configuration hangs from a key in the YML configuration named ‘markdown’. Inside it, you can add the following options:
-
suffixes
(list)¶ Default: [.md]
Tells the parser to ONLY modify docs with that suffix. Otherwise the document is ignored. This is checked against the source path (path), not the destination path (url).