decord/stable/source/modules/markup/MarkupSubtextRule.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

41 lines
1.1 KiB
TypeScript

// Module ID: 5107
// Function ID: 5108
// Name: MarkupSubtextRule
// Dependencies: [4333, 2]
// Module 5107 (MarkupSubtextRule)
import _mod4333 from "module_4333" /* 4333 */;
import size from "module_2" /* 2 */;
const _modDef4333 = _mod4333;
const re2 = /\n$/;
const re3 = /^ *-# +((?!-#)[^\n]+)(?:\n|$)/;
const result = size.fileFinishedImporting("modules/markup/MarkupSubtextRule.tsx");
export default {
order: _modDef4333.defaultRules.heading.order,
requiredFirstCharacters: ["-"],
match(arg0, allowSubtext, str) {
let tmp = null;
if (false !== allowSubtext.allowSubtext) {
if (null != str) {
if ("" !== str) {
let tmp4 = null;
}
tmp = tmp4;
}
tmp4 = _mod4333.anyScopeRegex(re3)(arg0, allowSubtext, str);
}
return tmp;
},
parse(arg0, fn, arg2) {
const obj = { content: null };
const obj3 = {};
const trimmed = arg0[1].trim();
const merged = Object.assign(arg2);
obj3.allowSubtext = false;
obj.content = _mod4333.parseInline(fn, trimmed, obj3);
return obj;
}
};