Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
markdown_it /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-05-13 15:07
cli
[ DIR ]
drwxr-xr-x
2025-05-13 15:07
common
[ DIR ]
drwxr-xr-x
2025-05-13 15:07
helpers
[ DIR ]
drwxr-xr-x
2025-05-13 15:07
presets
[ DIR ]
drwxr-xr-x
2025-05-13 15:07
rules_block
[ DIR ]
drwxr-xr-x
2025-05-13 15:07
rules_core
[ DIR ]
drwxr-xr-x
2025-05-13 15:07
rules_inline
[ DIR ]
drwxr-xr-x
2025-05-13 15:07
__init__.py
113
B
-rw-r--r--
2023-03-31 10:50
_compat.py
248
B
-rw-r--r--
2023-03-31 10:50
_punycode.py
2.26
KB
-rw-r--r--
2023-03-31 10:50
main.py
11.94
KB
-rw-r--r--
2023-03-31 10:50
parser_block.py
3.58
KB
-rw-r--r--
2023-03-31 10:50
parser_core.py
835
B
-rw-r--r--
2023-03-31 10:50
parser_inline.py
4.03
KB
-rw-r--r--
2023-03-31 10:50
port.yaml
2.46
KB
-rw-r--r--
2023-03-31 10:50
py.typed
26
B
-rw-r--r--
2023-03-31 10:50
renderer.py
9.81
KB
-rw-r--r--
2023-03-31 10:50
ruler.py
8.18
KB
-rw-r--r--
2023-03-31 10:50
token.py
6.23
KB
-rw-r--r--
2023-03-31 10:50
tree.py
10.79
KB
-rw-r--r--
2023-03-31 10:50
utils.py
3.19
KB
-rw-r--r--
2023-03-31 10:50
Save
Rename
from __future__ import annotations from collections.abc import Callable from pathlib import Path class OptionsDict(dict): """A dictionary, with attribute access to core markdownit configuration options.""" @property def maxNesting(self) -> int: """Internal protection, recursion limit.""" return self["maxNesting"] @maxNesting.setter def maxNesting(self, value: int): self["maxNesting"] = value @property def html(self) -> bool: """Enable HTML tags in source.""" return self["html"] @html.setter def html(self, value: bool): self["html"] = value @property def linkify(self) -> bool: """Enable autoconversion of URL-like texts to links.""" return self["linkify"] @linkify.setter def linkify(self, value: bool): self["linkify"] = value @property def typographer(self) -> bool: """Enable smartquotes and replacements.""" return self["typographer"] @typographer.setter def typographer(self, value: bool): self["typographer"] = value @property def quotes(self) -> str: """Quote characters.""" return self["quotes"] @quotes.setter def quotes(self, value: str): self["quotes"] = value @property def xhtmlOut(self) -> bool: """Use '/' to close single tags (<br />).""" return self["xhtmlOut"] @xhtmlOut.setter def xhtmlOut(self, value: bool): self["xhtmlOut"] = value @property def breaks(self) -> bool: """Convert newlines in paragraphs into <br>.""" return self["breaks"] @breaks.setter def breaks(self, value: bool): self["breaks"] = value @property def langPrefix(self) -> str: """CSS language prefix for fenced blocks.""" return self["langPrefix"] @langPrefix.setter def langPrefix(self, value: str): self["langPrefix"] = value @property def highlight(self) -> Callable[[str, str, str], str] | None: """Highlighter function: (content, langName, langAttrs) -> escaped HTML.""" return self["highlight"] @highlight.setter def highlight(self, value: Callable[[str, str, str], str] | None): self["highlight"] = value def read_fixture_file(path: str | Path) -> list[list]: text = Path(path).read_text(encoding="utf-8") tests = [] section = 0 last_pos = 0 lines = text.splitlines(keepends=True) for i in range(len(lines)): if lines[i].rstrip() == ".": if section == 0: tests.append([i, lines[i - 1].strip()]) section = 1 elif section == 1: tests[-1].append("".join(lines[last_pos + 1 : i])) section = 2 elif section == 2: tests[-1].append("".join(lines[last_pos + 1 : i])) section = 0 last_pos = i return tests def _removesuffix(string: str, suffix: str) -> str: """Remove a suffix from a string. Replace this with str.removesuffix() from stdlib when minimum Python version is 3.9. """ if suffix and string.endswith(suffix): return string[: -len(suffix)] return string