@powerlines/plugin-marked 0.1.187 → 0.1.188
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/index.cjs +3 -3
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +3 -3
- package/dist/types/plugin.d.mts +3 -3
- package/package.json +3 -3
- package/dist/node_modules/.pnpm/marked@17.0.1/node_modules/marked/lib/marked.esm.cjs +0 -1482
- package/dist/node_modules/.pnpm/marked@17.0.1/node_modules/marked/lib/marked.esm.mjs +0 -1481
- /package/dist/{packages/powerlines → powerlines}/src/internal/helpers/hooks.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/api.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/build.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/commands.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/config.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/context.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/fs.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/hooks.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/plugin.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/resolved.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/tsconfig.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/unplugin.d.mts +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
-
const require_marked_esm = require('./node_modules/.pnpm/marked@17.0.1/node_modules/marked/lib/marked.esm.cjs');
|
|
4
3
|
let defu = require("defu");
|
|
5
4
|
defu = require_rolldown_runtime.__toESM(defu);
|
|
5
|
+
let marked = require("marked");
|
|
6
6
|
|
|
7
7
|
//#region src/index.ts
|
|
8
8
|
/**
|
|
@@ -29,8 +29,8 @@ const plugin = (options = {}) => {
|
|
|
29
29
|
},
|
|
30
30
|
async configResolved() {
|
|
31
31
|
this.marked ??= {};
|
|
32
|
-
this.marked.parse ??= async (src, override = {}) =>
|
|
33
|
-
this.marked.use ??= (...args) =>
|
|
32
|
+
this.marked.parse ??= async (src, override = {}) => marked.marked.parse(src, (0, defu.default)(override, this.config.marked));
|
|
33
|
+
this.marked.use ??= (...args) => marked.marked.use(...args);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Plugin } from "./
|
|
1
|
+
import { Plugin } from "./powerlines/src/types/plugin.mjs";
|
|
2
2
|
import { MarkedPluginContext, MarkedPluginOptions, MarkedPluginResolvedConfig, MarkedPluginUserConfig } from "./types/plugin.mjs";
|
|
3
|
+
import "./types/index.mjs";
|
|
3
4
|
|
|
4
5
|
//#region src/index.d.ts
|
|
5
6
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d } from "./node_modules/.pnpm/marked@17.0.1/node_modules/marked/lib/marked.esm.mjs";
|
|
2
1
|
import defu from "defu";
|
|
2
|
+
import { marked } from "marked";
|
|
3
3
|
|
|
4
4
|
//#region src/index.ts
|
|
5
5
|
/**
|
|
@@ -26,8 +26,8 @@ const plugin = (options = {}) => {
|
|
|
26
26
|
},
|
|
27
27
|
async configResolved() {
|
|
28
28
|
this.marked ??= {};
|
|
29
|
-
this.marked.parse ??= async (src, override = {}) =>
|
|
30
|
-
this.marked.use ??= (...args) =>
|
|
29
|
+
this.marked.parse ??= async (src, override = {}) => marked.parse(src, defu(override, this.config.marked));
|
|
30
|
+
this.marked.use ??= (...args) => marked.use(...args);
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
};
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UserConfig } from "../
|
|
2
|
-
import { ResolvedConfig } from "../
|
|
3
|
-
import { PluginContext } from "../
|
|
1
|
+
import { UserConfig } from "../powerlines/src/types/config.mjs";
|
|
2
|
+
import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
3
|
+
import { PluginContext } from "../powerlines/src/types/context.mjs";
|
|
4
4
|
import { MarkedExtension, MarkedOptions, marked } from "marked";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-marked",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.188",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to use the Marked markdown compiler to generate HTML.",
|
|
6
6
|
"repository": {
|
|
@@ -124,10 +124,10 @@
|
|
|
124
124
|
"powerlines": "^0.37.95"
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
127
|
+
"@powerlines/plugin-plugin": "^0.12.174",
|
|
128
128
|
"@types/node": "^24.10.9",
|
|
129
129
|
"marked": "^17.0.1"
|
|
130
130
|
},
|
|
131
131
|
"publishConfig": { "access": "public" },
|
|
132
|
-
"gitHead": "
|
|
132
|
+
"gitHead": "2852dab8ff7cad2d1aa4a44d7fd2479d62f65d47"
|
|
133
133
|
}
|