Name Description Size
__init__.py 696
autolink.py 2079
backticks.py 2037
balance_pairs.py Balance paired characters (*, _, etc) in inline tokens. 4851
emphasis.py Insert each marker as a separate text token, and add it to delimiter list 3123
entity.py 1651
escape.py Process escaped chars and hardbreaks 1658
fragments_join.py Clean up tokens after emphasis and strikethrough postprocessing: merge adjacent text nodes into one and re-calculate all token levels This is necessary because initially emphasis delimiter markers (``*, _, ~``) are treated as their own separate text tokens. Then emphasis rule either leaves them as text (needed to merge with adjacent text) or turns them into opening/closing tags (which messes up levels inside). 1493
html_inline.py 1130
image.py 4135
link.py 4318
linkify.py Process links like https://example.org/ 1704
newline.py Proceess '\n'. 1296
state_inline.py Push new token to "stream". If pending text exists - flush it as text token 5101
strikethrough.py Insert each marker as a separate text token, and add it to delimiter list 3214
text.py 901