From d607ac12097afb5cb6f398a4e7b5cf4316efedc6 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 12 May 2024 12:14:02 +0700 Subject: self host --- packages/markdown-it-14.1.0/lib/rules_core/inline.mjs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/markdown-it-14.1.0/lib/rules_core/inline.mjs (limited to 'packages/markdown-it-14.1.0/lib/rules_core/inline.mjs') diff --git a/packages/markdown-it-14.1.0/lib/rules_core/inline.mjs b/packages/markdown-it-14.1.0/lib/rules_core/inline.mjs new file mode 100644 index 0000000..efd6c07 --- /dev/null +++ b/packages/markdown-it-14.1.0/lib/rules_core/inline.mjs @@ -0,0 +1,11 @@ +export default function inline (state) { + const tokens = state.tokens + + // Parse inlines + for (let i = 0, l = tokens.length; i < l; i++) { + const tok = tokens[i] + if (tok.type === 'inline') { + state.md.inline.parse(tok.content, state.md, state.env, tok.children) + } + } +} -- cgit v1.2.3