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

73 lines
6.7 KiB
Plaintext
Raw Normal View History

Ë
jRãó²dZddlmZddlmZddlZej dejejz«Z dZ
Gdde«Z Gd „d
e«Z d Z
y) 
Strip HTML (previously named Plain HTML).
pymdownx.striphtml
An extension for Python Markdown.
Strip classes, styles, and ids from html
MIT license.
Copyright (c) 2014 - 2017 Isaac Muse <isaacmuse@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
é)Ú Extension)Ú
PostprocessorNaB(?x)
(?:
(?P<comments>(?:\r?\n?\s*)<!--(?:-(?!->)|[^-])*?-->(?:\s*)(?=\r?\n)|<!--[\s\S]*?-->)|
(?P<scripts>
(?P<script_open><(?P<script_name>style|script))
(?P<script_attr>(?:\s+[\w\-:]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'`=<>]+))?)*)
(?P<script_rest>\s*>.*?</(?P=script_name)\s*>)
)|
(?P<open><(?P<name>[\w\:\.\-]+))
(?P<attr>(?:\s+[\w\-:]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'`=<>]+))?)*)
(?P<close>\s*(?P<self_close>/)?>)|
(?P<close_tag></(?P<close_name>[\w\:\.\-]+)\s*>)
)
zf(?x)
(?P<attr>
(?:
\s+(?:%s)
(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'`=<>]+))
)*
)
có.eZdZdZˆfdZdZdZˆxZS)ÚStripHtmlPostprocessorz-Post processor to strip out unwanted content.cót||_d|_|Dcgc]%}tj|j ««Œ'}}|r|j d«|rPtj tdj|«ztjtjz«|_t|1|«ycc}w)ú Initialize.Nzon[\w]+ú|)
Ústrip_commentsÚ
re_attributesÚreÚescapeÚstripÚappendÚcompileÚ TAG_BAD_ATTRÚjoinÚDOTALLÚUNICODEÚsuperÚ__init__)Úselfr
Ústrip_js_on_attributesÚstrip_attributesÚmdÚ
attributesÚ __class__s €úU/home/antigravity/intellecton/venv/lib/python3.12/site-packages/pymdownx/striphtml.pyrzStripHtmlPostprocessor.__init__>sø€ðÔØÔØ4DÖE¨q”b—i‘i §¡£ Õ
Ð × Ñ ˜jÔ Ü!#§¡Ü˜sŸx™x¨
Ó œBŸJ™JÑ"ˆ ô
јÕùòFs”*B5có¬|jd«r#|jrd}|S|jd«}|S|jd«rv|jd«}|j/||jjd|jd««z
}n||jd«z
}||jd«z
}|S|jd«r|jd«}|S|jd «}|j/||jjd|jd
««z
}n||jd
«z
}||jd «z
}|S) z)Replace comments and unwanted attributes.ÚcommentsÚÚscriptsÚ script_openÚ script_attrÚ script_restÚ close_tagrÚopenÚattrÚclose)Úgroupr
r Úsub)rÚtags rÚreplzStripHtmlPostprocessor.replNsBð
7‰7 Ø×+"ˆCð$ˆ
ð%23·±¸Ó1DˆCð$ˆ
ð!w‰w—g‘g˜mÓ,Ø×˜4×-×1°"°a·g±g¸mÓ6LÓM˜1Ÿ7™7 1q—ww˜-ðˆ
ð˜Ô—g‘g˜a“jðˆ
ð
—g‘g˜f“oØ×˜4×-×1°"°a·g±g¸f³oÓF˜1Ÿ7™7 6*q—ww˜'؈
ócóš|jxs|jxs |j}|r tj |j