@powerlines/plugin-marked 0.1.255 → 0.1.256
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.d.cts +6 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +6 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/plugin.d.cts +1 -3
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +1 -3
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { MarkedPluginContext, MarkedPluginOptions, MarkedPluginResolvedConfig, MarkedPluginUserConfig } from "./types/plugin.cjs";
|
|
2
2
|
import "./types/index.cjs";
|
|
3
|
-
import { Plugin } from "powerlines
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
-
|
|
6
|
+
declare module "powerlines" {
|
|
7
|
+
interface UserConfig {
|
|
8
|
+
marked?: MarkedPluginOptions;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
7
11
|
/**
|
|
8
12
|
* Marked Plugin
|
|
9
13
|
*
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IA2BwB,MAAA,CAAA,EAIX,mBAJW;EAAA;;;;AAmBxB;;;;;;;;;cAAa,0BACM,sBAAsB,+BAE9B,wBACR,OAAO"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { MarkedPluginContext, MarkedPluginOptions, MarkedPluginResolvedConfig, MarkedPluginUserConfig } from "./types/plugin.mjs";
|
|
2
2
|
import "./types/index.mjs";
|
|
3
|
-
import { Plugin } from "powerlines
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
-
|
|
6
|
+
declare module "powerlines" {
|
|
7
|
+
interface UserConfig {
|
|
8
|
+
marked?: MarkedPluginOptions;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
7
11
|
/**
|
|
8
12
|
* Marked Plugin
|
|
9
13
|
*
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IA2BwB,MAAA,CAAA,EAIX,mBAJW;EAAA;;;;AAmBxB;;;;;;;;;cAAa,0BACM,sBAAsB,+BAE9B,wBACR,OAAO"}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["marked"],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport defu from \"defu\";\nimport { marked, MarkedExtension, MarkedOptions } from \"marked\";\nimport { Plugin } from \"powerlines
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["marked"],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport defu from \"defu\";\nimport { marked, MarkedExtension, MarkedOptions } from \"marked\";\nimport { Plugin } from \"powerlines\";\nimport {\n MarkedPluginContext,\n MarkedPluginOptions,\n MarkedPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n export interface UserConfig {\n marked?: MarkedPluginOptions;\n }\n}\n\n/**\n * Marked Plugin\n *\n * @remarks\n * A Powerlines plugin to use the Marked markdown transformer during the prepare task.\n *\n * @see https://marked.js.org\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends MarkedPluginContext = MarkedPluginContext\n>(\n options: MarkedPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"marked\",\n async config() {\n return {\n marked: defu(options, {\n async: true,\n breaks: true,\n gfm: true,\n silent: !this.config.logLevel\n })\n } as Partial<MarkedPluginUserConfig>;\n },\n async configResolved() {\n this.marked ??= {} as TContext[\"marked\"];\n this.marked.parse ??= async (\n src: string,\n override: Partial<MarkedOptions> = {}\n ) =>\n marked.parse(src, defu(override, this.config.marked) as MarkedOptions);\n this.marked.use ??= (...args: MarkedExtension[]) => marked.use(...args);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;AA8CA,MAAa,UAGX,UAA+B,EAAE,KACZ;AACrB,QAAO;EACL,MAAM;EACN,MAAM,SAAS;AACb,UAAO,EACL,QAAQ,KAAK,SAAS;IACpB,OAAO;IACP,QAAQ;IACR,KAAK;IACL,QAAQ,CAAC,KAAK,OAAO;IACtB,CAAC,EACH;;EAEH,MAAM,iBAAiB;AACrB,QAAK,WAAW,EAAE;AAClB,QAAK,OAAO,UAAU,OACpB,KACA,WAAmC,EAAE,KAErCA,EAAO,MAAM,KAAK,KAAK,UAAU,KAAK,OAAO,OAAO,CAAkB;AACxE,QAAK,OAAO,SAAS,GAAG,SAA4BA,EAAO,IAAI,GAAG,KAAK;;EAE1E;;AAGH,kBAAe"}
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
1
2
|
import { MarkedExtension, MarkedOptions, marked } from "marked";
|
|
2
|
-
import { UserConfig } from "powerlines/types/config";
|
|
3
|
-
import { PluginContext } from "powerlines/types/context";
|
|
4
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
5
3
|
|
|
6
4
|
//#region src/types/plugin.d.ts
|
|
7
5
|
type MarkedPluginOptions = MarkedOptions & MarkedExtension;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,mBAAA,GAAsB,gBAAgB;KAEtC,sBAAA,GAAyB;EAFzB,MAAA,CAAA,EAGD,mBAHoB;AAE/B,CAAA;AAIY,KAAA,0BAAA,GAA6B,cAAA,GAAA;EAI7B,MAAA,EAHF,mBAGqB;CACL;AACtB,KAFQ,mBAER,CAAA,wBADsB,0BACtB,GAAA,0BAAA,CAAA,GACA,aADA,CACc,eADd,CAAA,GAAA;EACc,MAAA,EAAA;IAAd,KAAA,EAAA,CAAA,GAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAEgC,OAFhC,CAEwC,aAFxC,CAAA,EAAA,GAE2D,OAF3D,CAAA,MAAA,CAAA;IAEwC,GAAA,EAAA,OAC5B,MAAA,CAAO,GADqB;EAAR,CAAA;CAA2B"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
1
2
|
import { MarkedExtension, MarkedOptions, marked } from "marked";
|
|
2
|
-
import { UserConfig } from "powerlines/types/config";
|
|
3
|
-
import { PluginContext } from "powerlines/types/context";
|
|
4
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
5
3
|
|
|
6
4
|
//#region src/types/plugin.d.ts
|
|
7
5
|
type MarkedPluginOptions = MarkedOptions & MarkedExtension;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,mBAAA,GAAsB,gBAAgB;KAEtC,sBAAA,GAAyB;EAFzB,MAAA,CAAA,EAGD,mBAHoB;AAE/B,CAAA;AAIY,KAAA,0BAAA,GAA6B,cAAA,GAAA;EAI7B,MAAA,EAHF,mBAGqB;CACL;AACtB,KAFQ,mBAER,CAAA,wBADsB,0BACtB,GAAA,0BAAA,CAAA,GACA,aADA,CACc,eADd,CAAA,GAAA;EACc,MAAA,EAAA;IAAd,KAAA,EAAA,CAAA,GAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAEgC,OAFhC,CAEwC,aAFxC,CAAA,EAAA,GAE2D,OAF3D,CAAA,MAAA,CAAA;IAEwC,GAAA,EAAA,OAC5B,MAAA,CAAO,GADqB;EAAR,CAAA;CAA2B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-marked",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.256",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to use the Marked markdown compiler to generate HTML.",
|
|
6
6
|
"repository": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"default": "./dist/index.mjs"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
"
|
|
58
|
+
"./*": "./*",
|
|
59
59
|
"./types": {
|
|
60
60
|
"require": {
|
|
61
61
|
"types": "./dist/types/index.d.cts",
|
|
@@ -93,14 +93,14 @@
|
|
|
93
93
|
"@stryke/path": "^0.26.6",
|
|
94
94
|
"@stryke/types": "^0.10.39",
|
|
95
95
|
"defu": "^6.1.4",
|
|
96
|
-
"powerlines": "^0.
|
|
96
|
+
"powerlines": "^0.39.0"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
100
|
-
"@types/node": "^25.3.
|
|
99
|
+
"@powerlines/plugin-plugin": "^0.12.242",
|
|
100
|
+
"@types/node": "^25.3.2",
|
|
101
101
|
"marked": "^17.0.3"
|
|
102
102
|
},
|
|
103
103
|
"publishConfig": { "access": "public" },
|
|
104
104
|
"types": "./dist/index.d.cts",
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "0dcb16f054b8a69915b074578e6d4dfa3ecc1529"
|
|
106
106
|
}
|