From db1c6676a13798ee57dbac429a1d5045b60356fb Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Thu, 30 Apr 2026 22:01:53 +0800 Subject: quite a big commit --- .../markdown-it-14.1.0/lib/rules_block/code.mjs | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 packages/markdown-it-14.1.0/lib/rules_block/code.mjs (limited to 'packages/markdown-it-14.1.0/lib/rules_block/code.mjs') diff --git a/packages/markdown-it-14.1.0/lib/rules_block/code.mjs b/packages/markdown-it-14.1.0/lib/rules_block/code.mjs deleted file mode 100644 index e45e6f9..0000000 --- a/packages/markdown-it-14.1.0/lib/rules_block/code.mjs +++ /dev/null @@ -1,30 +0,0 @@ -// Code block (4 spaces padded) - -export default function code (state, startLine, endLine/*, silent */) { - if (state.sCount[startLine] - state.blkIndent < 4) { return false } - - let nextLine = startLine + 1 - let last = nextLine - - while (nextLine < endLine) { - if (state.isEmpty(nextLine)) { - nextLine++ - continue - } - - if (state.sCount[nextLine] - state.blkIndent >= 4) { - nextLine++ - last = nextLine - continue - } - break - } - - state.line = last - - const token = state.push('code_block', 'code', 0) - token.content = state.getLines(startLine, last, 4 + state.blkIndent, false) + '\n' - token.map = [startLine, state.line] - - return true -} -- cgit v1.2.3