Linux sea-business-23.hostwindsdns.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
LiteSpeed
Server IP : 104.168.155.189 & Your IP : 216.73.217.84
Domains :
Cant Read [ /etc/named.conf ]
User : zvmcccat
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
markdown /
extensions /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-02-24 08:50
__init__.py
3.76
KB
-rw-r--r--
2017-12-08 00:11
abbr.py
2.85
KB
-rw-r--r--
2018-01-05 00:41
admonition.py
3.08
KB
-rw-r--r--
2017-12-08 00:12
attr_list.py
6.12
KB
-rw-r--r--
2017-12-08 00:12
codehilite.py
9.54
KB
-rw-r--r--
2017-12-08 00:12
def_list.py
3.66
KB
-rw-r--r--
2017-12-08 00:12
extra.py
5.41
KB
-rw-r--r--
2017-12-08 00:12
fenced_code.py
4
KB
-rw-r--r--
2017-12-08 00:12
footnotes.py
15.37
KB
-rw-r--r--
2018-01-05 00:41
headerid.py
3.24
KB
-rw-r--r--
2017-12-08 00:12
meta.py
2.34
KB
-rw-r--r--
2017-12-08 00:12
nl2br.py
854
B
-rw-r--r--
2017-12-08 00:12
sane_lists.py
1.56
KB
-rw-r--r--
2017-12-08 00:12
smart_strong.py
1.16
KB
-rw-r--r--
2017-12-08 00:12
smarty.py
10.12
KB
-rw-r--r--
2018-01-04 00:01
tables.py
7.66
KB
-rw-r--r--
2017-12-08 00:12
toc.py
10.78
KB
-rw-r--r--
2018-01-04 00:01
wikilinks.py
2.8
KB
-rw-r--r--
2017-12-08 00:12
Save
Rename
''' Abbreviation Extension for Python-Markdown ========================================== This extension adds abbreviation handling to Python-Markdown. See <https://Python-Markdown.github.io/extensions/abbreviations> for documentation. Oringinal code Copyright 2007-2008 [Waylan Limberg](http://achinghead.com/) and [Seemant Kulleen](http://www.kulleen.org/) All changes Copyright 2008-2014 The Python Markdown Project License: [BSD](http://www.opensource.org/licenses/bsd-license.php) ''' from __future__ import absolute_import from __future__ import unicode_literals from . import Extension from ..preprocessors import Preprocessor from ..inlinepatterns import Pattern from ..util import etree, AtomicString import re # Global Vars ABBR_REF_RE = re.compile(r'[*]\[(?P<abbr>[^\]]*)\][ ]?:\s*(?P<title>.*)') class AbbrExtension(Extension): """ Abbreviation Extension for Python-Markdown. """ def extendMarkdown(self, md, md_globals): """ Insert AbbrPreprocessor before ReferencePreprocessor. """ md.preprocessors.add('abbr', AbbrPreprocessor(md), '<reference') class AbbrPreprocessor(Preprocessor): """ Abbreviation Preprocessor - parse text for abbr references. """ def run(self, lines): ''' Find and remove all Abbreviation references from the text. Each reference is set as a new AbbrPattern in the markdown instance. ''' new_text = [] for line in lines: m = ABBR_REF_RE.match(line) if m: abbr = m.group('abbr').strip() title = m.group('title').strip() self.markdown.inlinePatterns['abbr-%s' % abbr] = \ AbbrPattern(self._generate_pattern(abbr), title) # Preserve the line to prevent raw HTML indexing issue. # https://github.com/Python-Markdown/markdown/issues/584 new_text.append('') else: new_text.append(line) return new_text def _generate_pattern(self, text): ''' Given a string, returns an regex pattern to match that string. 'HTML' -> r'(?P<abbr>[H][T][M][L])' Note: we force each char as a literal match (in brackets) as we don't know what they will be beforehand. ''' chars = list(text) for i in range(len(chars)): chars[i] = r'[%s]' % chars[i] return r'(?P<abbr>\b%s\b)' % (r''.join(chars)) class AbbrPattern(Pattern): """ Abbreviation inline pattern. """ def __init__(self, pattern, title): super(AbbrPattern, self).__init__(pattern) self.title = title def handleMatch(self, m): abbr = etree.Element('abbr') abbr.text = AtomicString(m.group('abbr')) abbr.set('title', self.title) return abbr def makeExtension(*args, **kwargs): return AbbrExtension(*args, **kwargs)