Files
intellecton/venv/lib/python3.12/site-packages/pymdownx/__pycache__/saneheaders.cpython-312.pyc
T

18 lines
1.8 KiB
Plaintext
Raw Normal View History

Ë
ãóZdZddlZddlmZddlmZGdde«ZGdde«Zd „Zy)
Sane headers.
Allow for a header implementation that requires `#` headers to have a space
after the `#` portion. This allows for things like Magiclink issues to work
at the beginning of lines, and potentially other things like tag extensions
etc.
éN)Ú Extension)ÚHashHeaderProcessorcó4eZdZdZej
d«Zy)ÚSaneHeadersProcessorzProcess hash headers syntax.zE(?:^|\n)(?P<level>#{1,6})(?=[ ])(?P<header>(?:\\.|[^\\])*?)#*(?:\n|$)N)Ú__name__Ú
__module__Ú __qualname__Ú__doc__ÚreÚcompileÚRE©óúW/home/antigravity/intellecton/venv/lib/python3.12/site-packages/pymdownx/saneheaders.pyrrsÙˆÐ\Ó ]BrrcóeZdZdZdZy)ÚSaneHeadersExtensionz Adds the sane headers extension.cóš|jjjt|j«dd«|j |«y)z.Extend the inline and block processor objects.Ú
hashheaderéFN)ÚparserÚblockprocessorsÚregisterrÚregisterExtension)ÚselfÚmds rÚextendMarkdownz#SaneHeadersExtension.extendMarkdowns9ð ×!×*Ô+?ÀÇ Á Ó+JÈLÐZ\Ô
×ј"rN)rrr r
rrrrrrs
Ù#rrcót|i|¤ŽS)zReturn extension.)r)ÚargsÚkwargss rÚ
makeExtensionr sô  Ð Ñ 0r) r
r ÚmarkdownrÚmarkdown.blockprocessorsrrrr rrrú<module>r#s5ðñó