‹›
markdown.extensions
¶
Markdown accepts an Extension
instance for each extension. Therefore, each extension
must to define a class that extends Extension
and over-rides the
extendMarkdown
method. Within this class one can manage configuration
options for their extension and attach the various processors and patterns which make up an extension to the
Markdown
instance.
‹›
markdown.extensions.Extension(**kwargs)
¶
Base class for extensions to subclass.
‹›
markdown.extensions.Extension.setConfig(key: str, value: Any) -> None
¶
Set a configuration option.
If the corresponding default value set in config
is a bool
value or None
, then value
is passed through
parseBoolValue
before being stored.
Parameters:
Raises:
-
KeyError
–If
key
is not known.