gfm – Base module for GitHub-Flavored Markdown

class gfm.AutolinkExtension(*args, **kwargs)[source]

An extension that turns URLs into links.

extendMarkdown(md, md_globals)[source]

Add the various proccesors and patterns to the Markdown Instance.

This method must be overriden by every extension.

Keyword arguments:

  • md: The Markdown instance.
  • md_globals: Global variables in the markdown module namespace.
class gfm.AutomailExtension(*args, **kwargs)[source]

An extension that turns email addresses into links.

extendMarkdown(md, md_globals)[source]

Add the various proccesors and patterns to the Markdown Instance.

This method must be overriden by every extension.

Keyword arguments:

  • md: The Markdown instance.
  • md_globals: Global variables in the markdown module namespace.
class gfm.HiddenHiliteExtension(*args, **kwargs)[source]

A subclass of CodeHiliteExtension that doesn’t highlight on its own.

extendMarkdown(md, md_globals)[source]

Add HilitePostprocessor to Markdown instance.

class gfm.SemiSaneListExtension(*args, **kwargs)[source]

An extension that causes lists to be treated the same way GitHub does.

extendMarkdown(md, md_globals)[source]

Add the various proccesors and patterns to the Markdown Instance.

This method must be overriden by every extension.

Keyword arguments:

  • md: The Markdown instance.
  • md_globals: Global variables in the markdown module namespace.
class gfm.SpacedLinkExtension(*args, **kwargs)[source]

An extension that supports links and images with additional whitespace.

extendMarkdown(md, md_globals)[source]

Add the various proccesors and patterns to the Markdown Instance.

This method must be overriden by every extension.

Keyword arguments:

  • md: The Markdown instance.
  • md_globals: Global variables in the markdown module namespace.
class gfm.StrikethroughExtension(*args, **kwargs)[source]

An extension that adds support for strike-through text between two ~~.

extendMarkdown(md, md_globals)[source]

Add the various proccesors and patterns to the Markdown Instance.

This method must be overriden by every extension.

Keyword arguments:

  • md: The Markdown instance.
  • md_globals: Global variables in the markdown module namespace.
class gfm.TaskListExtension(*args, **kwargs)[source]

An extension that supports GitHub task lists. Both ordered and unordered lists are supported and can be separately enabled. Nested lists are supported.

Example:

- [x] milk
- [ ] eggs
- [x] chocolate
- [ ] if possible:
    1. [ ] solve world peace
    2. [ ] solve world hunger
extendMarkdown(md, md_globals)[source]

Add the various proccesors and patterns to the Markdown Instance.

This method must be overriden by every extension.

Keyword arguments:

  • md: The Markdown instance.
  • md_globals: Global variables in the markdown module namespace.