Python Markdown#

Terminal for MkDocs is compatible with some of the Python Markdown extensions. The following is a list of all extensions which have been tested with this theme, linking to documentation which explain how they can be used.

Suggested Python Markdown Extensions#

Attribute Lists#

The Attribute Lists extension helps to add HTML attributes and CSS classes to Markdown inline and block-level elements. Enable it via mkdocs.yml:

markdown_extensions:
  - attr_list

No configuration options are available. See reference for usage:

Definition Lists#

The Definition Lists extension adds a Markdown syntax for definition lists (more commonly known as description lists). Enable it via mkdocs.yml:

markdown_extensions:
  - def_list

No configuration options are available. See reference for usage:

Footnotes#

The Footnotes extension enables inline footnotes which are then rendered below all of a document's Markdown content. Enable it via mkdocs.yml:

markdown_extensions:
  - footnotes

See reference for usage:

Markdown in HTML#

The Markdown in HTML extension allows for writing Markdown inside of HTML, which is useful for wrapping Markdown content with custom elements. Enable it via mkdocs.yml:

markdown_extensions:
  - md_in_html

From the Markdown in HTML extension's docs:

By default, Markdown ignores any content within a raw HTML block-level element. With the md_in_html extension enabled, the content of a raw HTML block-level element can be parsed as Markdown by including a markdown attribute on the opening tag. The markdown attribute will be stripped from the output, while all other attributes will be preserved.

No configuration options are available. See reference for usage:

Table of Contents#

The Table of Contents extension automatically generates a table of contents from a document which Terminal for MkDocs will render as part of the resulting page. It can be configured via mkdocs.yml:

markdown_extensions:
  - toc:
      permalink: "#"

The following configuration options are supported:

permalink

Default: false

This option adds an anchor link containing the paragraph symbol (if true) or another custom symbol at the end of each section heading.

permalink_title

Default: Permanent link

This option sets the title of the anchor link which is shown on hover. It might be beneficial to change it to a more discernable name, stating that the anchor links to the section itself. Ex: Anchor link to this section for reference

anchorlink

Default: false

Set to true to render all headers as links to themselves.


The other configuration options of this extension have not been tested with Terminal for MkDocs and may yield unexpected results.

See reference for usage:

Tables#

The Tables extension adds a Markdown syntax for data tables. It is enabled by default but you can specify it explicitly in mkdocs.yml:

markdown_extensions:
  - tables

No configuration options are available. See reference for usage:

Credit#

This documentation page is based on squidfunk's Material for MkDocs Python Markdown documentation.