REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.47 KB
Close
/home/byroehnu/.trash/node_modules11/markdown-it/lib/parser_core.mjs
Text
Base64
/** internal * class Core * * Top-level rules executor. Glues block/inline parsers and does intermediate * transformations. **/ import Ruler from './ruler.mjs' import StateCore from './rules_core/state_core.mjs' import r_normalize from './rules_core/normalize.mjs' import r_block from './rules_core/block.mjs' import r_inline from './rules_core/inline.mjs' import r_linkify from './rules_core/linkify.mjs' import r_replacements from './rules_core/replacements.mjs' import r_smartquotes from './rules_core/smartquotes.mjs' import r_text_join from './rules_core/text_join.mjs' const _rules = [ ['normalize', r_normalize], ['block', r_block], ['inline', r_inline], ['linkify', r_linkify], ['replacements', r_replacements], ['smartquotes', r_smartquotes], // `text_join` finds `text_special` tokens (for escape sequences) // and joins them with the rest of the text ['text_join', r_text_join] ] /** * new Core() **/ function Core () { /** * Core#ruler -> Ruler * * [[Ruler]] instance. Keep configuration of core rules. **/ this.ruler = new Ruler() for (let i = 0; i < _rules.length; i++) { this.ruler.push(_rules[i][0], _rules[i][1]) } } /** * Core.process(state) * * Executes core chain rules. **/ Core.prototype.process = function (state) { const rules = this.ruler.getRules('') for (let i = 0, l = rules.length; i < l; i++) { rules[i](state) } } Core.prototype.State = StateCore export default Core
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 6 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
common
DIR
-
drwxr-xr-x
2026-02-28 00:29:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
helpers
DIR
-
drwxr-xr-x
2026-02-28 00:29:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
presets
DIR
-
drwxr-xr-x
2026-02-28 00:29:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rules_block
DIR
-
drwxr-xr-x
2026-02-28 00:29:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rules_core
DIR
-
drwxr-xr-x
2026-02-28 00:29:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rules_inline
DIR
-
drwxr-xr-x
2026-02-28 00:29:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.mjs
17.48 KB
lrw-r--r--
2026-02-28 00:29:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
parser_block.mjs
3.89 KB
lrw-r--r--
2026-02-28 00:29:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
parser_core.mjs
1.47 KB
lrw-r--r--
2026-02-28 00:29:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
parser_inline.mjs
5.31 KB
lrw-r--r--
2026-02-28 00:29:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
renderer.mjs
8.72 KB
lrw-r--r--
2026-02-28 00:29:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ruler.mjs
8.28 KB
lrw-r--r--
2026-02-28 00:29:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
token.mjs
3.71 KB
lrw-r--r--
2026-02-28 00:29:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).