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

Ë
cÀjÅãóZ—dZddlZddlmZddlmZGd„de«ZGd„de«Zd „Zy)
zù
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ó4—eZdZdZej
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ó—eZdZdZd„Zy)Ú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\Ô]Ø
×јTÕ"rN)rrr r
rrrrrrs
„Ù*ó#rrcó—t|i|¤ŽS)zReturn extension.)r)ÚargsÚkwargss rÚ
makeExtensionr s€ô  Ð 0¨Ñ 0Ð0r) r
r ÚmarkdownrÚmarkdown.blockprocessorsrrrr rrrú<module>r#s5ðñó