@powerlines/plugin-marked 0.1.93 → 0.1.95

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 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');
3
4
  let defu = require("defu");
4
5
  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 = {}) => marked.marked.parse(src, (0, defu.default)(override, this.config.marked));
33
- this.marked.use ??= (...args) => marked.marked.use(...args);
32
+ this.marked.parse ??= async (src, override = {}) => require_marked_esm.d.parse(src, (0, defu.default)(override, this.config.marked));
33
+ this.marked.use ??= (...args) => require_marked_esm.d.use(...args);
34
34
  }
35
35
  };
36
36
  };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,5 @@
1
- import { Plugin } from "./powerlines/src/types/plugin.mjs";
1
+ import { Plugin } from "./packages/powerlines/src/types/plugin.mjs";
2
2
  import { MarkedPluginContext, MarkedPluginOptions, MarkedPluginResolvedConfig, MarkedPluginUserConfig } from "./types/plugin.mjs";
3
- import "./types/index.mjs";
4
3
 
5
4
  //#region src/index.d.ts
6
5
 
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";
1
2
  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 = {}) => marked.parse(src, defu(override, this.config.marked));
30
- this.marked.use ??= (...args) => marked.use(...args);
29
+ this.marked.parse ??= async (src, override = {}) => d.parse(src, defu(override, this.config.marked));
30
+ this.marked.use ??= (...args) => d.use(...args);
31
31
  }
32
32
  };
33
33
  };