__init__.py |
A Python port of Markdown-It |
113 |
_compat.py |
|
246 |
_punycode.py |
|
2364 |
cli |
|
|
common |
|
|
helpers |
|
|
main.py |
Main parser class
:param config: name of configuration to load or a pre-defined dictionary
:param options_update: dictionary that will be merged into ``config["options"]``
:param renderer_cls: the class to load as the renderer:
``self.renderer = renderer_cls(self)
|
12772 |
parser_block.py |
Block-level tokenizer. |
3911 |
parser_core.py |
* class Core
*
* Top-level rules executor. Glues block/inline parsers and does intermediate
* transformations.
|
1010 |
parser_inline.py |
Tokenizes paragraph content.
|
4997 |
port.yaml |
|
2446 |
presets |
|
|
py.typed |
|
26 |
renderer.py |
class Renderer
Generates HTML from parsed token stream. Each instance has independent
copy of rules. Those can be rewritten with ease. Also, you can add new
rules if you create plugin and adds new token types.
|
9970 |
ruler.py |
class Ruler
Helper class, used by [[MarkdownIt#core]], [[MarkdownIt#block]] and
[[MarkdownIt#inline]] to manage sequences of functions (rules):
- keep rules in defined order
- assign the name to each rule
- enable/disable rules
- add/replace rules
- allow assign rules to additional named chains (in the same)
- caching lists of active rules
You will not need use this class directly until write plugins. For simple
rules control use [[MarkdownIt.disable]], [[MarkdownIt.enable]] and
[[MarkdownIt.use]].
|
9199 |
rules_block |
|
|
rules_core |
|
|
rules_inline |
|
|
token.py |
Convert Token.attrs set as ``None`` or ``[[key, value], ...]`` to a dict.
This improves compatibility with upstream markdown-it.
|
6439 |
tree.py |
A tree representation of a linear markdown-it token stream.
This module is not part of upstream JavaScript markdown-it.
|
11421 |
utils.py |
Type for the environment sandbox used in parsing and rendering,
which stores mutable variables for use by plugins and rules.
|
5365 |