@ox-content/unplugin 3.0.0-beta.9 → 3.0.0

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.
@@ -1,4 +1,4 @@
1
- import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as extractTocFromMdast, b as PluginConfig, c as toUnifiedMdastPlugin, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as defineMdastPlugin, l as transformMarkdown, m as MdastPluginContext, n as OxContentMdastOptions, o as oxContentMdast, p as MdastPlugin, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
1
+ import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as oxContentMdast, b as PluginConfig, c as OxContentMdastOptions, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as extractTocFromMdast, l as transformMarkdown, m as MdastPluginContext, n as createMdastPluginContext, o as parseMarkdownToMdast, p as MdastPlugin, r as defineMdastPlugin, s as toUnifiedMdastPlugin, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
2
2
  //#region src/esbuild.d.ts
3
3
  declare const _default: (options?: OxContentOptions | undefined) => import("unplugin").EsbuildPlugin;
4
4
  //#endregion
package/dist/index.d.mts CHANGED
@@ -310,6 +310,21 @@ interface OxContentOptions {
310
310
  * @default true
311
311
  */
312
312
  strikethrough?: boolean;
313
+ /**
314
+ * Enable `^text^` superscript spans.
315
+ * @default false
316
+ */
317
+ superscript?: boolean;
318
+ /**
319
+ * Enable `~text~` subscript spans.
320
+ * @default false
321
+ */
322
+ subscript?: boolean;
323
+ /**
324
+ * Enable smart punctuation replacement.
325
+ * @default false
326
+ */
327
+ smartPunctuation?: boolean;
313
328
  /**
314
329
  * Enable syntax highlighting for code blocks.
315
330
  * @default false
@@ -342,6 +357,13 @@ interface OxContentOptions {
342
357
  math?: boolean | {
343
358
  enabled?: boolean;
344
359
  };
360
+ /**
361
+ * Enable definition list blocks.
362
+ * @default false
363
+ */
364
+ definitionLists?: boolean | {
365
+ enabled?: boolean;
366
+ };
345
367
  /**
346
368
  * Parse YAML frontmatter.
347
369
  * @default true
@@ -414,10 +436,14 @@ interface ResolvedOptions {
414
436
  tables: boolean;
415
437
  taskLists: boolean;
416
438
  strikethrough: boolean;
439
+ superscript: boolean;
440
+ subscript: boolean;
441
+ smartPunctuation: boolean;
417
442
  highlight: boolean;
418
443
  codeAnnotations: ResolvedCodeAnnotationsOptions;
419
444
  mermaid: boolean;
420
445
  math: boolean;
446
+ definitionLists: boolean;
421
447
  frontmatter: boolean;
422
448
  toc: boolean;
423
449
  tocMaxDepth: number;
@@ -456,7 +482,7 @@ interface TocEntry {
456
482
  */
457
483
  declare function transformMarkdown(source: string, filePath: string, options: ResolvedOptions): Promise<TransformResult>;
458
484
  //#endregion
459
- //#region src/mdast.d.ts
485
+ //#region src/mdast-options.d.ts
460
486
  /**
461
487
  * Parser options for the Ox Content mdast unified plugin.
462
488
  */
@@ -496,7 +522,34 @@ interface OxContentMdastOptions {
496
522
  * @default true
497
523
  */
498
524
  autolinks?: boolean;
525
+ /**
526
+ * Enable `^text^` superscript spans.
527
+ * @default false
528
+ */
529
+ superscript?: boolean;
530
+ /**
531
+ * Enable `~text~` subscript spans.
532
+ * @default false
533
+ */
534
+ subscript?: boolean;
535
+ /**
536
+ * Enable smart punctuation replacement.
537
+ * @default false
538
+ */
539
+ smartPunctuation?: boolean;
540
+ /**
541
+ * Enable `$...$` inline math and `$$...$$` block math.
542
+ * @default false
543
+ */
544
+ math?: boolean;
545
+ /**
546
+ * Enable definition list blocks.
547
+ * @default false
548
+ */
549
+ definitionLists?: boolean;
499
550
  }
551
+ //#endregion
552
+ //#region src/mdast.d.ts
500
553
  type ProcessorWithParser = {
501
554
  parser?: (document: string) => MdastRoot;
502
555
  };
@@ -534,4 +587,4 @@ declare function createMdastPluginContext(filePath: string, source: string, fron
534
587
  */
535
588
  declare const unplugin: import("unplugin").UnpluginInstance<OxContentOptions | undefined, boolean>;
536
589
  //#endregion
537
- export { ResolvedDocsConfig as C, UnifiedPreset as D, TransformResult as E, RemarkPlugin as S, TocEntry as T, OxContentMdastPlugin as _, extractTocFromMdast as a, PluginConfig as b, toUnifiedMdastPlugin as c, MarkdownItPlugin as d, MdastNode as f, MdastTransformer as g, MdastRoot as h, defineMdastPlugin as i, transformMarkdown as l, MdastPluginContext as m, OxContentMdastOptions as n, oxContentMdast as o, MdastPlugin as p, createMdastPluginContext as r, parseMarkdownToMdast as s, unplugin as t, DocsConfig as u, OxContentOptions as v, ResolvedOptions as w, RehypePlugin as x, OxContentPlugin as y };
590
+ export { ResolvedDocsConfig as C, UnifiedPreset as D, TransformResult as E, RemarkPlugin as S, TocEntry as T, OxContentMdastPlugin as _, oxContentMdast as a, PluginConfig as b, OxContentMdastOptions as c, MarkdownItPlugin as d, MdastNode as f, MdastTransformer as g, MdastRoot as h, extractTocFromMdast as i, transformMarkdown as l, MdastPluginContext as m, createMdastPluginContext as n, parseMarkdownToMdast as o, MdastPlugin as p, defineMdastPlugin as r, toUnifiedMdastPlugin as s, unplugin as t, DocsConfig as u, OxContentOptions as v, ResolvedOptions as w, RehypePlugin as x, OxContentPlugin as y };
package/dist/index2.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as extractTocFromMdast, b as PluginConfig, c as toUnifiedMdastPlugin, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as defineMdastPlugin, l as transformMarkdown, m as MdastPluginContext, n as OxContentMdastOptions, o as oxContentMdast, p as MdastPlugin, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
1
+ import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as oxContentMdast, b as PluginConfig, c as OxContentMdastOptions, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as extractTocFromMdast, l as transformMarkdown, m as MdastPluginContext, n as createMdastPluginContext, o as parseMarkdownToMdast, p as MdastPlugin, r as defineMdastPlugin, s as toUnifiedMdastPlugin, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
2
2
  export { type DocsConfig, type MarkdownItPlugin, type MdastNode, type MdastPlugin, type MdastPluginContext, type MdastRoot, type MdastTransformer, type OxContentMdastOptions, type OxContentMdastPlugin, type OxContentOptions, type OxContentPlugin, type PluginConfig, type RehypePlugin, type RemarkPlugin, type ResolvedDocsConfig, type ResolvedOptions, type TocEntry, type TransformResult, type UnifiedPreset, createMdastPluginContext, unplugin as default, unplugin, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown };
package/dist/rollup.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as extractTocFromMdast, b as PluginConfig, c as toUnifiedMdastPlugin, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as defineMdastPlugin, l as transformMarkdown, m as MdastPluginContext, n as OxContentMdastOptions, o as oxContentMdast, p as MdastPlugin, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
1
+ import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as oxContentMdast, b as PluginConfig, c as OxContentMdastOptions, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as extractTocFromMdast, l as transformMarkdown, m as MdastPluginContext, n as createMdastPluginContext, o as parseMarkdownToMdast, p as MdastPlugin, r as defineMdastPlugin, s as toUnifiedMdastPlugin, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
2
2
  //#region src/rollup.d.ts
3
3
  declare const _default: (options?: OxContentOptions | undefined) => import("unplugin").RollupPlugin<any>[] | import("unplugin").RollupPlugin<any>;
4
4
  //#endregion
package/dist/rspack.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as extractTocFromMdast, b as PluginConfig, c as toUnifiedMdastPlugin, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as defineMdastPlugin, l as transformMarkdown, m as MdastPluginContext, n as OxContentMdastOptions, o as oxContentMdast, p as MdastPlugin, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
1
+ import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as oxContentMdast, b as PluginConfig, c as OxContentMdastOptions, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as extractTocFromMdast, l as transformMarkdown, m as MdastPluginContext, n as createMdastPluginContext, o as parseMarkdownToMdast, p as MdastPlugin, r as defineMdastPlugin, s as toUnifiedMdastPlugin, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
2
2
  //#region src/rspack.d.ts
3
3
  declare const _default: (options?: OxContentOptions | undefined) => RspackPluginInstance;
4
4
  //#endregion
package/dist/src.mjs CHANGED
@@ -91,6 +91,13 @@ const KIND_MDX_JSX_TEXT = 24;
91
91
  const KIND_MDX_ESM = 25;
92
92
  const KIND_MDX_FLOW_EXPRESSION = 26;
93
93
  const KIND_MDX_TEXT_EXPRESSION = 27;
94
+ const KIND_MATH = 28;
95
+ const KIND_INLINE_MATH = 29;
96
+ const KIND_DEFINITION_LIST = 30;
97
+ const KIND_DEFINITION_TERM = 31;
98
+ const KIND_DEFINITION_DESCRIPTION = 32;
99
+ const KIND_SUPERSCRIPT = 33;
100
+ const KIND_SUBSCRIPT = 34;
94
101
  const FLAG_ORDERED = 1;
95
102
  const FLAG_SPREAD = 2;
96
103
  const FLAG_CHECKED_PRESENT = 4;
@@ -214,6 +221,11 @@ function deserializeMdastFromRaw(buffer, source) {
214
221
  if (str1 !== void 0) node.meta = str1;
215
222
  return node;
216
223
  }
224
+ case KIND_MATH: return {
225
+ type: "math",
226
+ value: str0 ?? "",
227
+ position
228
+ };
217
229
  case KIND_HTML: return {
218
230
  type: "html",
219
231
  value: str0 ?? "",
@@ -235,6 +247,21 @@ function deserializeMdastFromRaw(buffer, source) {
235
247
  children: children ?? [],
236
248
  position
237
249
  };
250
+ case KIND_DEFINITION_LIST: return {
251
+ type: "definitionList",
252
+ children: children ?? [],
253
+ position
254
+ };
255
+ case KIND_DEFINITION_TERM: return {
256
+ type: "definitionTerm",
257
+ children: children ?? [],
258
+ position
259
+ };
260
+ case KIND_DEFINITION_DESCRIPTION: return {
261
+ type: "definitionDescription",
262
+ children: children ?? [],
263
+ position
264
+ };
238
265
  case KIND_TEXT: return {
239
266
  type: "text",
240
267
  value: str0 ?? "",
@@ -255,6 +282,11 @@ function deserializeMdastFromRaw(buffer, source) {
255
282
  value: str0 ?? "",
256
283
  position
257
284
  };
285
+ case KIND_INLINE_MATH: return {
286
+ type: "inlineMath",
287
+ value: str0 ?? "",
288
+ position
289
+ };
258
290
  case KIND_BREAK: return {
259
291
  type: "break",
260
292
  position
@@ -284,6 +316,16 @@ function deserializeMdastFromRaw(buffer, source) {
284
316
  children: children ?? [],
285
317
  position
286
318
  };
319
+ case KIND_SUPERSCRIPT: return {
320
+ type: "superscript",
321
+ children: children ?? [],
322
+ position
323
+ };
324
+ case KIND_SUBSCRIPT: return {
325
+ type: "subscript",
326
+ children: children ?? [],
327
+ position
328
+ };
287
329
  case KIND_FOOTNOTE_REFERENCE: {
288
330
  const node = {
289
331
  type: "footnoteReference",
@@ -491,9 +533,7 @@ function utf8ByteLength(character) {
491
533
  return 4;
492
534
  }
493
535
  //#endregion
494
- //#region src/mdast.ts
495
- const require$1 = createRequire(import.meta.url);
496
- let cachedNapiBindings$1;
536
+ //#region src/mdast-options.ts
497
537
  const DEFAULT_MDAST_OPTIONS = {
498
538
  gfm: true,
499
539
  mdx: false,
@@ -501,8 +541,33 @@ const DEFAULT_MDAST_OPTIONS = {
501
541
  taskLists: true,
502
542
  tables: true,
503
543
  strikethrough: true,
504
- autolinks: true
544
+ autolinks: true,
545
+ superscript: false,
546
+ subscript: false,
547
+ smartPunctuation: false,
548
+ math: false,
549
+ definitionLists: false
505
550
  };
551
+ function resolveMdastOptions(options) {
552
+ return {
553
+ gfm: options.gfm ?? DEFAULT_MDAST_OPTIONS.gfm,
554
+ mdx: options.mdx ?? DEFAULT_MDAST_OPTIONS.mdx,
555
+ footnotes: options.footnotes ?? DEFAULT_MDAST_OPTIONS.footnotes,
556
+ taskLists: options.taskLists ?? DEFAULT_MDAST_OPTIONS.taskLists,
557
+ tables: options.tables ?? DEFAULT_MDAST_OPTIONS.tables,
558
+ strikethrough: options.strikethrough ?? DEFAULT_MDAST_OPTIONS.strikethrough,
559
+ autolinks: options.autolinks ?? DEFAULT_MDAST_OPTIONS.autolinks,
560
+ superscript: options.superscript ?? DEFAULT_MDAST_OPTIONS.superscript,
561
+ subscript: options.subscript ?? DEFAULT_MDAST_OPTIONS.subscript,
562
+ smartPunctuation: options.smartPunctuation ?? DEFAULT_MDAST_OPTIONS.smartPunctuation,
563
+ math: options.math ?? DEFAULT_MDAST_OPTIONS.math,
564
+ definitionLists: options.definitionLists ?? DEFAULT_MDAST_OPTIONS.definitionLists
565
+ };
566
+ }
567
+ //#endregion
568
+ //#region src/mdast.ts
569
+ const require$1 = createRequire(import.meta.url);
570
+ let cachedNapiBindings$1;
506
571
  /**
507
572
  * Unified parser plugin backed by Ox Content's native mdast parser.
508
573
  *
@@ -534,7 +599,12 @@ function parseMarkdownToMdast(source, options = {}) {
534
599
  taskLists: resolvedOptions.taskLists,
535
600
  tables: resolvedOptions.tables,
536
601
  strikethrough: resolvedOptions.strikethrough,
537
- autolinks: resolvedOptions.autolinks
602
+ autolinks: resolvedOptions.autolinks,
603
+ superscript: resolvedOptions.superscript,
604
+ subscript: resolvedOptions.subscript,
605
+ smartPunctuation: resolvedOptions.smartPunctuation,
606
+ math: resolvedOptions.math,
607
+ definitionLists: resolvedOptions.definitionLists
538
608
  };
539
609
  return deserializeMdastFromRaw(requireNapiMethod$1(napi.parseTransferRaw, "parseTransferRaw")(source, "mdast", parserOptions), source);
540
610
  }
@@ -594,17 +664,6 @@ function requireNapiMethod$1(method, name) {
594
664
  if (typeof method === "function") return method;
595
665
  throw new Error(`[ox-content] @ox-content/napi is too old for mdast interop: missing ${name}(). Rebuild the NAPI module with \`vp run build:napi\`.`);
596
666
  }
597
- function resolveMdastOptions(options) {
598
- return {
599
- gfm: options.gfm ?? DEFAULT_MDAST_OPTIONS.gfm,
600
- mdx: options.mdx ?? DEFAULT_MDAST_OPTIONS.mdx,
601
- footnotes: options.footnotes ?? DEFAULT_MDAST_OPTIONS.footnotes,
602
- taskLists: options.taskLists ?? DEFAULT_MDAST_OPTIONS.taskLists,
603
- tables: options.tables ?? DEFAULT_MDAST_OPTIONS.tables,
604
- strikethrough: options.strikethrough ?? DEFAULT_MDAST_OPTIONS.strikethrough,
605
- autolinks: options.autolinks ?? DEFAULT_MDAST_OPTIONS.autolinks
606
- };
607
- }
608
667
  function buildTocTree$1(entries) {
609
668
  const result = [];
610
669
  const stack = [];
@@ -710,11 +769,15 @@ function createNapiTransformOptions(options, filePath) {
710
769
  tables: options.tables,
711
770
  strikethrough: options.strikethrough,
712
771
  autolinks: options.gfm,
772
+ superscript: options.superscript,
773
+ subscript: options.subscript,
774
+ smartPunctuation: options.smartPunctuation,
713
775
  frontmatter: options.frontmatter,
714
776
  tocMaxDepth: options.tocMaxDepth,
715
777
  codeAnnotations: codeAnnotations.enabled,
716
778
  codeAnnotationMetaKey: codeAnnotations.metaKey,
717
- math: options.math
779
+ math: options.math,
780
+ definitionLists: options.definitionLists ? { enabled: true } : void 0
718
781
  };
719
782
  }
720
783
  function parseFrontmatterJson(json) {
@@ -952,7 +1015,12 @@ function installUnifiedParser(processor, strategy, options, filePath, nativeTree
952
1015
  taskLists: options.taskLists,
953
1016
  tables: options.tables,
954
1017
  strikethrough: options.strikethrough,
955
- autolinks: options.gfm
1018
+ autolinks: options.gfm,
1019
+ superscript: options.superscript,
1020
+ subscript: options.subscript,
1021
+ smartPunctuation: options.smartPunctuation,
1022
+ math: options.math,
1023
+ definitionLists: options.definitionLists
956
1024
  });
957
1025
  }
958
1026
  function resolveUnifiedParserStrategy(processor) {
@@ -1295,10 +1363,14 @@ function resolveOptions(options) {
1295
1363
  tables: options.tables ?? true,
1296
1364
  taskLists: options.taskLists ?? true,
1297
1365
  strikethrough: options.strikethrough ?? true,
1366
+ superscript: options.superscript ?? false,
1367
+ subscript: options.subscript ?? false,
1368
+ smartPunctuation: options.smartPunctuation ?? false,
1298
1369
  highlight: options.highlight ?? false,
1299
1370
  codeAnnotations: resolveCodeAnnotationsOptions(options.codeAnnotations),
1300
1371
  mermaid: options.mermaid ?? false,
1301
1372
  math: options.math === true || typeof options.math === "object" && options.math.enabled !== false,
1373
+ definitionLists: options.definitionLists === true || typeof options.definitionLists === "object" && options.definitionLists.enabled !== false,
1302
1374
  frontmatter: options.frontmatter ?? true,
1303
1375
  toc: options.toc ?? true,
1304
1376
  tocMaxDepth: options.tocMaxDepth ?? 3,
package/dist/vite.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as extractTocFromMdast, b as PluginConfig, c as toUnifiedMdastPlugin, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as defineMdastPlugin, l as transformMarkdown, m as MdastPluginContext, n as OxContentMdastOptions, o as oxContentMdast, p as MdastPlugin, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
1
+ import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as oxContentMdast, b as PluginConfig, c as OxContentMdastOptions, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as extractTocFromMdast, l as transformMarkdown, m as MdastPluginContext, n as createMdastPluginContext, o as parseMarkdownToMdast, p as MdastPlugin, r as defineMdastPlugin, s as toUnifiedMdastPlugin, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
2
2
  //#region src/vite.d.ts
3
3
  declare const _default: (options?: OxContentOptions | undefined) => import("unplugin").VitePlugin<any>[] | import("unplugin").VitePlugin<any>;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as extractTocFromMdast, b as PluginConfig, c as toUnifiedMdastPlugin, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as defineMdastPlugin, l as transformMarkdown, m as MdastPluginContext, n as OxContentMdastOptions, o as oxContentMdast, p as MdastPlugin, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
1
+ import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as oxContentMdast, b as PluginConfig, c as OxContentMdastOptions, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as extractTocFromMdast, l as transformMarkdown, m as MdastPluginContext, n as createMdastPluginContext, o as parseMarkdownToMdast, p as MdastPlugin, r as defineMdastPlugin, s as toUnifiedMdastPlugin, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
2
2
  //#region src/webpack.d.ts
3
3
  declare const _default: (options?: OxContentOptions | undefined) => import("unplugin").WebpackPluginInstance;
4
4
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ox-content/unplugin",
3
- "version": "3.0.0-beta.9",
3
+ "version": "3.0.0",
4
4
  "description": "Universal plugin for Ox Content - Markdown processing for webpack, rollup, esbuild, vite, and more",
5
5
  "keywords": [
6
6
  "esbuild",
@@ -55,7 +55,7 @@
55
55
  "provenance": true
56
56
  },
57
57
  "dependencies": {
58
- "@ox-content/napi": "3.0.0-beta.9",
58
+ "@ox-content/napi": "3.0.0",
59
59
  "@rollup/pluginutils": "^5.4.0",
60
60
  "markdown-it": "^15.0.0",
61
61
  "markdown-it-anchor": "^9.2.1",