OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python311
/
lib
/
python3.11
/
site-packages
/
markdown_it
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/05/2025 09:34:01 AM
rwxr-xr-x
📄
__init__.py
113 bytes
05/08/2024 06:42:35 PM
rw-r--r--
📁
__pycache__
-
05/08/2024 06:42:35 PM
rwxr-xr-x
📄
_compat.py
246 bytes
05/08/2024 06:42:35 PM
rw-r--r--
📄
_punycode.py
2.31 KB
05/08/2024 06:42:35 PM
rw-r--r--
📁
cli
-
05/08/2024 06:42:35 PM
rwxr-xr-x
📁
common
-
05/08/2024 06:42:35 PM
rwxr-xr-x
📁
helpers
-
05/08/2024 06:42:35 PM
rwxr-xr-x
📄
main.py
12.47 KB
05/08/2024 06:42:35 PM
rw-r--r--
📄
parser_block.py
3.82 KB
05/08/2024 06:42:35 PM
rw-r--r--
📄
parser_core.py
1010 bytes
05/08/2024 06:42:35 PM
rw-r--r--
📄
parser_inline.py
4.88 KB
05/08/2024 06:42:35 PM
rw-r--r--
📄
port.yaml
2.39 KB
05/08/2024 06:42:35 PM
rw-r--r--
📁
presets
-
05/08/2024 06:42:35 PM
rwxr-xr-x
📄
py.typed
26 bytes
05/08/2024 06:42:35 PM
rw-r--r--
📄
renderer.py
9.74 KB
05/08/2024 06:42:35 PM
rw-r--r--
📄
ruler.py
8.98 KB
05/08/2024 06:42:35 PM
rw-r--r--
📁
rules_block
-
05/08/2024 06:42:35 PM
rwxr-xr-x
📁
rules_core
-
05/08/2024 06:42:35 PM
rwxr-xr-x
📁
rules_inline
-
05/08/2024 06:42:35 PM
rwxr-xr-x
📄
token.py
6.29 KB
05/08/2024 06:42:35 PM
rw-r--r--
📄
tree.py
11.15 KB
05/08/2024 06:42:35 PM
rw-r--r--
📄
utils.py
5.24 KB
05/08/2024 06:42:35 PM
rw-r--r--
Editing: parser_core.py
Close
""" * class Core * * Top-level rules executor. Glues block/inline parsers and does intermediate * transformations. """ from __future__ import annotations from typing import Callable from .ruler import Ruler from .rules_core import ( block, inline, linkify, normalize, replace, smartquotes, text_join, ) from .rules_core.state_core import StateCore RuleFuncCoreType = Callable[[StateCore], None] _rules: list[tuple[str, RuleFuncCoreType]] = [ ("normalize", normalize), ("block", block), ("inline", inline), ("linkify", linkify), ("replacements", replace), ("smartquotes", smartquotes), ("text_join", text_join), ] class ParserCore: def __init__(self) -> None: self.ruler = Ruler[RuleFuncCoreType]() for name, rule in _rules: self.ruler.push(name, rule) def process(self, state: StateCore) -> None: """Executes core chain rules.""" for rule in self.ruler.getRules(""): rule(state)