2026-09-22 07:41:18 +00:00
|
|
|
// Module ID: 5239
|
|
|
|
|
// Function ID: 5240
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: MarkupSubtextRule
|
2026-09-19 06:52:51 +00:00
|
|
|
// Dependencies: [1929, 2]
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-22 07:41:18 +00:00
|
|
|
// Module 5239 (MarkupSubtextRule)
|
2026-09-19 06:52:51 +00:00
|
|
|
import _mod1929 from "module_1929" /* 1929 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
2026-09-19 06:52:51 +00:00
|
|
|
const _modDef1929 = _mod1929;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
const re2 = /\n$/;
|
2026-08-11 06:20:06 +00:00
|
|
|
const re3 = /^ *-# +((?!-#)[^\n]+)(?:\n|$)/;
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/markup/MarkupSubtextRule.tsx");
|
|
|
|
|
|
|
|
|
|
export default {
|
2026-09-19 06:52:51 +00:00
|
|
|
order: _modDef1929.defaultRules.heading.order,
|
2026-07-23 10:11:24 +00:00
|
|
|
requiredFirstCharacters: ["-"],
|
2026-08-11 06:20:06 +00:00
|
|
|
match(arg0, allowSubtext, str) {
|
|
|
|
|
let tmp = null;
|
|
|
|
|
if (false !== allowSubtext.allowSubtext) {
|
|
|
|
|
if (null != str) {
|
|
|
|
|
if ("" !== str) {
|
|
|
|
|
let tmp4 = null;
|
|
|
|
|
}
|
|
|
|
|
tmp = tmp4;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-19 06:52:51 +00:00
|
|
|
tmp4 = _mod1929.anyScopeRegex(re3)(arg0, allowSubtext, str);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-11 06:20:06 +00:00
|
|
|
return tmp;
|
2026-07-20 16:05:17 +00:00
|
|
|
},
|
2026-09-10 05:38:07 +00:00
|
|
|
parse(arg0, fn, arg2) {
|
|
|
|
|
const obj = { content: null };
|
|
|
|
|
const obj3 = {};
|
2026-08-11 06:20:06 +00:00
|
|
|
const trimmed = arg0[1].trim();
|
|
|
|
|
const merged = Object.assign(arg2);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj3.allowSubtext = false;
|
2026-09-19 06:52:51 +00:00
|
|
|
obj.content = _mod1929.parseInline(fn, trimmed, obj3);
|
2026-07-20 16:05:17 +00:00
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
};
|