@powerlines/plugin-automd 0.1.128 → 0.1.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.cjs +2 -0
- package/dist/_virtual/rolldown_runtime.mjs +32 -0
- package/dist/index.cjs +5 -5
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +7 -7
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +78 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +77 -0
- package/dist/node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/dist/acorn.cjs +5032 -0
- package/dist/node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/dist/acorn.mjs +5031 -0
- package/dist/node_modules/.pnpm/automd@0.4.2_patch_hash_0fe864a2d6fa1461e144747e5f0fbc0a5fb51435ec6b3217ffb18ff2d7058778_magicast@0.5.1/node_modules/automd/dist/shared/automd.CjwUz8DJ.cjs +593 -0
- package/dist/node_modules/.pnpm/automd@0.4.2_patch_hash_0fe864a2d6fa1461e144747e5f0fbc0a5fb51435ec6b3217ffb18ff2d7058778_magicast@0.5.1/node_modules/automd/dist/shared/automd.CjwUz8DJ.mjs +590 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs +23 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs +22 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs +405 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs +404 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +46 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +45 -0
- package/dist/node_modules/.pnpm/didyoumean2@7.0.4/node_modules/didyoumean2/dist/index.cjs +204 -0
- package/dist/node_modules/.pnpm/didyoumean2@7.0.4/node_modules/didyoumean2/dist/index.mjs +202 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +1013 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +1007 -0
- package/dist/node_modules/.pnpm/fastest-levenshtein@1.0.16/node_modules/fastest-levenshtein/mod.cjs +128 -0
- package/dist/node_modules/.pnpm/fastest-levenshtein@1.0.16/node_modules/fastest-levenshtein/mod.mjs +123 -0
- package/dist/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/dist/babel.cjs +41464 -0
- package/dist/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/dist/babel.mjs +41461 -0
- package/dist/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/dist/jiti.cjs +4387 -0
- package/dist/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/dist/jiti.mjs +4384 -0
- package/dist/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/lib/jiti.cjs +26 -0
- package/dist/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/lib/jiti.mjs +26 -0
- package/dist/node_modules/.pnpm/lodash.deburr@4.1.0/node_modules/lodash.deburr/index.cjs +370 -0
- package/dist/node_modules/.pnpm/lodash.deburr@4.1.0/node_modules/lodash.deburr/index.mjs +367 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.cjs +939 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs +939 -0
- package/dist/node_modules/.pnpm/mdbox@0.1.1/node_modules/mdbox/dist/index.cjs +67 -0
- package/dist/node_modules/.pnpm/mdbox@0.1.1/node_modules/mdbox/dist/index.mjs +64 -0
- package/dist/node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.cjs +1292 -0
- package/dist/node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.mjs +1284 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +179 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +179 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +18 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +3975 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +3961 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.cjs +16 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs +14 -0
- package/dist/node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.cjs +36 -0
- package/dist/node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs +33 -0
- package/dist/node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.cjs +227 -0
- package/dist/node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs +225 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +139 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +133 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +77 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +76 -0
- package/dist/node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.cjs +72 -0
- package/dist/node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs +69 -0
- package/dist/node_modules/.pnpm/ufo@1.6.2/node_modules/ufo/dist/index.cjs +178 -0
- package/dist/node_modules/.pnpm/ufo@1.6.2/node_modules/ufo/dist/index.mjs +175 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/loader/babel.cjs +12337 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/loader/babel.mjs +12337 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/loader/loader.cjs +19 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/loader/loader.mjs +18 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.BTwOq8Jl.cjs +71 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.BTwOq8Jl.mjs +71 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.Br_uXjZG.cjs +110 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.Br_uXjZG.mjs +100 -0
- package/dist/types/plugin.d.mts +3 -3
- package/package.json +4 -5
- /package/dist/{powerlines → packages/powerlines}/src/internal/helpers/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/api.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/babel.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/build.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/commands.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/config.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/context.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/fs.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/plugin.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/resolved.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/tsconfig.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/unplugin.d.mts +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/mdbox@0.1.1/node_modules/mdbox/dist/index.mjs
|
|
3
|
+
function heading(text, level) {
|
|
4
|
+
if (!level || level < 1) level = 1;
|
|
5
|
+
else if (level > 6) level = 6;
|
|
6
|
+
return `
|
|
7
|
+
${"#".repeat(level)} ${text}
|
|
8
|
+
`;
|
|
9
|
+
}
|
|
10
|
+
function link(url, text, opts) {
|
|
11
|
+
if (opts?.external) return `<a href="${url instanceof URL ? url.href : url}" title="${opts?.title ?? ""}" target="_blank">${text}</a>`;
|
|
12
|
+
return `[${text || url}](${url || "#"}${opts?.title ? ` "${opts.title}"` : ""})`;
|
|
13
|
+
}
|
|
14
|
+
function image(url, text, opts) {
|
|
15
|
+
return ``;
|
|
16
|
+
}
|
|
17
|
+
function codeBlock(code, lang, opts) {
|
|
18
|
+
return `\`\`\`${lang || ""}${opts?.ext ? ` ${opts.ext}` : ""}
|
|
19
|
+
${code}
|
|
20
|
+
\`\`\``;
|
|
21
|
+
}
|
|
22
|
+
function table(table2) {
|
|
23
|
+
return `${`| ${table2.columns.join(" | ")} |`}
|
|
24
|
+
${`| ${table2.columns.map(() => "---").join(" | ")} |`}
|
|
25
|
+
${table2.rows.map((row) => `| ${row.join(" | ")} |`).join("\n")}`;
|
|
26
|
+
}
|
|
27
|
+
function bold(text) {
|
|
28
|
+
return `**${text}**`;
|
|
29
|
+
}
|
|
30
|
+
function italic(text) {
|
|
31
|
+
return `_${text}_`;
|
|
32
|
+
}
|
|
33
|
+
function boldAndItalic(text) {
|
|
34
|
+
return `***${text}***`;
|
|
35
|
+
}
|
|
36
|
+
function blockquote(text) {
|
|
37
|
+
return text.split("\n").map((line) => `> ${line}`).join("\n");
|
|
38
|
+
}
|
|
39
|
+
function strikethrough(text) {
|
|
40
|
+
return `~~${text}~~`;
|
|
41
|
+
}
|
|
42
|
+
function hr(length) {
|
|
43
|
+
return "-".repeat(length || 3);
|
|
44
|
+
}
|
|
45
|
+
function list(items, opts = {}) {
|
|
46
|
+
return items.map((item, index) => `${opts.ordered ? `${index + 1}.` : opts.char || "-"} ${item}`).join("\n");
|
|
47
|
+
}
|
|
48
|
+
const render = {
|
|
49
|
+
__proto__: null,
|
|
50
|
+
blockquote,
|
|
51
|
+
bold,
|
|
52
|
+
boldAndItalic,
|
|
53
|
+
codeBlock,
|
|
54
|
+
heading,
|
|
55
|
+
hr,
|
|
56
|
+
image,
|
|
57
|
+
italic,
|
|
58
|
+
link,
|
|
59
|
+
list,
|
|
60
|
+
strikethrough,
|
|
61
|
+
table
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
exports.image = image;
|
|
66
|
+
exports.link = link;
|
|
67
|
+
exports.render = render;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/mdbox@0.1.1/node_modules/mdbox/dist/index.mjs
|
|
2
|
+
function heading(text, level) {
|
|
3
|
+
if (!level || level < 1) level = 1;
|
|
4
|
+
else if (level > 6) level = 6;
|
|
5
|
+
return `
|
|
6
|
+
${"#".repeat(level)} ${text}
|
|
7
|
+
`;
|
|
8
|
+
}
|
|
9
|
+
function link(url, text, opts) {
|
|
10
|
+
if (opts?.external) return `<a href="${url instanceof URL ? url.href : url}" title="${opts?.title ?? ""}" target="_blank">${text}</a>`;
|
|
11
|
+
return `[${text || url}](${url || "#"}${opts?.title ? ` "${opts.title}"` : ""})`;
|
|
12
|
+
}
|
|
13
|
+
function image(url, text, opts) {
|
|
14
|
+
return ``;
|
|
15
|
+
}
|
|
16
|
+
function codeBlock(code, lang, opts) {
|
|
17
|
+
return `\`\`\`${lang || ""}${opts?.ext ? ` ${opts.ext}` : ""}
|
|
18
|
+
${code}
|
|
19
|
+
\`\`\``;
|
|
20
|
+
}
|
|
21
|
+
function table(table2) {
|
|
22
|
+
return `${`| ${table2.columns.join(" | ")} |`}
|
|
23
|
+
${`| ${table2.columns.map(() => "---").join(" | ")} |`}
|
|
24
|
+
${table2.rows.map((row) => `| ${row.join(" | ")} |`).join("\n")}`;
|
|
25
|
+
}
|
|
26
|
+
function bold(text) {
|
|
27
|
+
return `**${text}**`;
|
|
28
|
+
}
|
|
29
|
+
function italic(text) {
|
|
30
|
+
return `_${text}_`;
|
|
31
|
+
}
|
|
32
|
+
function boldAndItalic(text) {
|
|
33
|
+
return `***${text}***`;
|
|
34
|
+
}
|
|
35
|
+
function blockquote(text) {
|
|
36
|
+
return text.split("\n").map((line) => `> ${line}`).join("\n");
|
|
37
|
+
}
|
|
38
|
+
function strikethrough(text) {
|
|
39
|
+
return `~~${text}~~`;
|
|
40
|
+
}
|
|
41
|
+
function hr(length) {
|
|
42
|
+
return "-".repeat(length || 3);
|
|
43
|
+
}
|
|
44
|
+
function list(items, opts = {}) {
|
|
45
|
+
return items.map((item, index) => `${opts.ordered ? `${index + 1}.` : opts.char || "-"} ${item}`).join("\n");
|
|
46
|
+
}
|
|
47
|
+
const render = {
|
|
48
|
+
__proto__: null,
|
|
49
|
+
blockquote,
|
|
50
|
+
bold,
|
|
51
|
+
boldAndItalic,
|
|
52
|
+
codeBlock,
|
|
53
|
+
heading,
|
|
54
|
+
hr,
|
|
55
|
+
image,
|
|
56
|
+
italic,
|
|
57
|
+
link,
|
|
58
|
+
list,
|
|
59
|
+
strikethrough,
|
|
60
|
+
table
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
export { image, link, render };
|