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

52 lines
4.5 KiB
Plaintext
Raw Normal View History

Ë
j ãóôdZddlZddlmZddlmZddlmZdZdZ d Z
d
je «Z d je«Z
Gd d
ej«ZGddej«ZGdde«ZdZy)
Mark.
pymdownx.mark
Really simple plugin to add support for
<mark>test</mark> tags as ==test==
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.
éN)Ú Extension)ÚSimpleTextInlineProcessoré)Úutilz((?:(?<=\s)=+?(?=\s)|.)+?=*?)z((?:[^=]|(?<!={2})=)+?)z((^|(?<=\s))(=+)(?=\s|$))z(={{2}})(?!\s){}(?<!\s)\1zD(?:(?<=_)|(?<![\w=]))(={{2}})(?![\s=]){}(?<!\s)\1(?:(?=_)|(?![\w=]))cóŠeZdZdZej
ejeejejz«dd«gZ y)Ú
MarkProcessorzHandle mark patterns.ÚsingleÚmarkN) Ú__name__Ú
__module__Ú __qualname__Ú__doc__rÚ
PatSeqItemÚreÚcompileÚMARKÚDOTALLÚUNICODEÚPATTERNS©óúP/home/antigravity/intellecton/venv/lib/python3.12/site-packages/pymdownx/mark.pyrr+s:Ù𠈘
˜Ÿ
 4¨¯©°R·Z±ZÑ)?Ó@À(ÈFÓHrrcóŠeZdZdZej
ejeejejz«dd«gZ y)ÚMarkSmartProcessorzHandle smart mark patterns.r r
N) r r r
rrrrrÚ
SMART_MARKrrrrrrrr3s;Ù ˆ˜
˜Ÿ
 :¨r¯y©y¸2¿:¹:Ñ/EÓÐRXÓHrrcó(eZdZdZˆfdZdZˆxZS)Ú
MarkExtensionz)Add the mark extension to Markdown class.có:dddgi|_t||i|¤Žy)z Initialize.Ú
smart_markTz8Treat ==connected==words== intelligently - Default: TrueN)ÚconfigÚsuperÚ__init__)ÚselfÚargsÚkwargsÚ __class__s €rr"zMarkExtension.__init__>s-ø€ð
˜4Ð![Ð
ˆŒ ô ј) )rcóŒ|j«}t|jdd««}|j|«g}|j d«t j ||«|jjtt«dd«|r td«n
td«}|jj|dd«y) z.Insert `<mark>test</mark>` tags as `==test==`.r=Ú not_tildeéFr
éAN)
Ú
getConfigsÚboolÚgetÚregisterExtensionÚappendrÚ escape_charsÚinlinePatternsÚregisterrÚNOT_MARKrr)r#Úmdr Úsmartr1r