class JIRARenderer(BaseRenderer): (source)
JIRA renderer class.
See mistletoe.base_renderer module for more info.
Static Method | render |
Undocumented |
Static Method | render |
Undocumented |
Static Method | render |
Undocumented |
Static Method | render |
Undocumented |
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 |
Recursively renders child tokens. Joins the rendered strings with no space in between. |
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 |
Instance Variable | last |
Undocumented |
Instance Variable | list |
Undocumented |
Method | _block |
Jira syntax is very limited when it comes to lists: whenever we put an empty line anywhere in a list, it gets terminated and there seems to be no workaround for this. Also to have blocks like paragraphs really vertically separated, we need to put an empty line between them... |
Inherited from BaseRenderer
:
Method | __enter__ |
Make renderer classes into context managers. |
Method | __exit__ |
Make renderer classes into context managers. |
Method | render |
Grabs the class name from input token and finds its corresponding render function. |
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. |
Recursively renders child tokens. Joins the rendered strings with no space in between.
If newlines / spaces are needed between tokens, add them in their respective templates, or override this function in the renderer subclass, so that whitespace won't seem to appear magically for anyone reading your program.
Parameters | |
token | a branch node who has children attribute. |
Jira syntax is very limited when it comes to lists: whenever we put an empty line anywhere in a list, it gets terminated and there seems to be no workaround for this. Also to have blocks like paragraphs really vertically separated, we need to put an empty line between them. This function handles these two cases.