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
""" Admonition extension for Python-Markdown ======================================== Adds rST-style admonitions. Inspired by [rST][] feature with the same name. [rST]: http://docutils.sourceforge.net/docs/ref/rst/directives.html#specific-admonitions # noqa See <https://Python-Markdown.github.io/extensions/admonition> for documentation. Original code Copyright [Tiago Serafim](http://www.tiagoserafim.com/). All changes Copyright 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 ..blockprocessors import BlockProcessor from ..util import etree import re class AdmonitionExtension(Extension): """ Admonition extension for Python-Markdown. """ def extendMarkdown(self, md, md_globals): """ Add Admonition to Markdown instance. """ md.registerExtension(self) md.parser.blockprocessors.add('admonition', AdmonitionProcessor(md.parser), '_begin') class AdmonitionProcessor(BlockProcessor): CLASSNAME = 'admonition' CLASSNAME_TITLE = 'admonition-title' RE = re.compile(r'(?:^|\n)!!! ?([\w\-]+)(?: +"(.*?)")? *(?:\n|$)') def test(self, parent, block): sibling = self.lastChild(parent) return self.RE.search(block) or \ (block.startswith(' ' * self.tab_length) and sibling is not None and sibling.get('class', '').find(self.CLASSNAME) != -1) def run(self, parent, blocks): sibling = self.lastChild(parent) block = blocks.pop(0) m = self.RE.search(block) if m: block = block[m.end():] # removes the first line block, theRest = self.detab(block) if m: klass, title = self.get_class_and_title(m) div = etree.SubElement(parent, 'div') div.set('class', '%s %s' % (self.CLASSNAME, klass)) if title: p = etree.SubElement(div, 'p') p.text = title p.set('class', self.CLASSNAME_TITLE) else: div = sibling self.parser.parseChunk(div, block) if theRest: # This block contained unindented line(s) after the first indented # line. Insert these lines as the first block of the master blocks # list for future processing. blocks.insert(0, theRest) def get_class_and_title(self, match): klass, title = match.group(1).lower(), match.group(2) if title is None: # no title was provided, use the capitalized classname as title # e.g.: `!!! note` will render # `<p class="admonition-title">Note</p>` title = klass.capitalize() elif title == '': # an explicit blank title should not be rendered # e.g.: `!!! warning ""` will *not* render `p` with a title title = None return klass, title def makeExtension(*args, **kwargs): return AdmonitionExtension(*args, **kwargs)