extensions
Markdown Extensions.
Classes
Extension(*args, **kwargs)
Bases: object
Base class for extensions to subclass.
Initiate Extension and set up configs.
Source code in pyrevitlib/pyrevit/coreutils/markdown/extensions/__init__.py
Attributes
config = {}
class-attribute
instance-attribute
Functions
getConfig(key, default='')
Return a setting for the given key or an empty string.
getConfigs()
getConfigInfo()
setConfig(key, value)
Set a config setting for key
with the given value
.
Source code in pyrevitlib/pyrevit/coreutils/markdown/extensions/__init__.py
setConfigs(items)
Set multiple config settings given a dict or list of tuples.
Source code in pyrevitlib/pyrevit/coreutils/markdown/extensions/__init__.py
extendMarkdown(md, md_globals)
Add the various proccesors and patterns to the Markdown Instance.
This method must be overriden by every extension.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
md |
Markdown
|
The Markdown instance. |
required |
md_globals |
list[Any]
|
Global variables in the markdown module namespace. |
required |