class documentation
class HTMLRenderer(BaseRenderer): (source)
Known subclasses: mistletoe.contrib.github_wiki.GithubWikiRenderer
, mistletoe.contrib.mathjax.MathJaxRenderer
, mistletoe.contrib.toc_renderer.TOCRenderer
HTML renderer class.
See mistletoe.base_renderer module for more info.
Static Method | escape |
This method is deprecated. Use html.escape instead. |
Static Method | escape |
Escape urls to prevent code injection craziness. (Hopefully.) |
Static Method | render |
Undocumented |
Static Method | render |
Undocumented |
Static Method | render |
Undocumented |
Static Method | render |
Undocumented |
Method | __exit__ |
Make renderer classes into context managers. |
Method | __init__ |
No summary |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Default render method for RawText. Simply return token.content. |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Method | render |
Undocumented |
Instance Variable | _suppress |
Undocumented |
Inherited from BaseRenderer
:
Method | __enter__ |
Make renderer classes into context managers. |
Method | render |
Grabs the class name from input token and finds its corresponding render function. |
Method | render |
Recursively renders child tokens. Joins the rendered strings with no space in between. |
Instance Variable | footnotes |
Undocumented |
Instance Variable | render |
maps tokens to their corresponding render functions. |
Class Method | _cls |
Undocumented |
Static Method | _tokens |
Helper method; takes a module and returns a list of all token classes specified in module.__all__. Useful when custom tokens are defined in a separate module. |
Class Variable | _parse |
Undocumented |
Instance Variable | _extras |
a list of custom tokens to be added to the parsing process. |
Make renderer classes into context managers.
Reset block_token._token_types and span_token._token_types.
overridden in
mistletoe.contrib.github_wiki.GithubWikiRenderer
, mistletoe.contrib.toc_renderer.TOCRenderer
Parameters | |
*extras:list | allows subclasses to add even more custom tokens. |