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

  1. Reads the suffix of path and if it matches, process the document.
  2. Modifies the suffix of url path to “.html”.
  3. Process the content with marko.convert and replaces it.
  4. 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).

Functions

parse(site, document)[source]
setup(site)[source]