@ox-content/unplugin 2.9.0 → 2.10.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.
- package/dist/esbuild.d.mts +2 -2
- package/dist/esbuild.mjs +2 -2
- package/dist/index.d.mts +199 -7
- package/dist/index.mjs +2 -2
- package/dist/index2.d.mts +2 -2
- package/dist/rollup.d.mts +2 -2
- package/dist/rollup.mjs +2 -2
- package/dist/rspack.d.mts +2 -2
- package/dist/rspack.mjs +2 -2
- package/dist/src.mjs +1076 -20
- package/dist/vite.d.mts +2 -2
- package/dist/vite.mjs +2 -2
- package/dist/webpack.d.mts +2 -2
- package/dist/webpack.mjs +2 -2
- package/package.json +16 -3
package/dist/vite.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as
|
|
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";
|
|
2
2
|
import * as unplugin$1 from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/vite.d.ts
|
|
5
5
|
declare const _default: (options?: OxContentOptions | undefined) => unplugin$1.VitePlugin<any> | unplugin$1.VitePlugin<any>[];
|
|
6
6
|
//#endregion
|
|
7
|
-
export {
|
|
7
|
+
export { DocsConfig, MarkdownItPlugin, MdastNode, MdastPlugin, MdastPluginContext, MdastRoot, MdastTransformer, OxContentMdastOptions, OxContentMdastPlugin, OxContentOptions, OxContentPlugin, PluginConfig, RehypePlugin, RemarkPlugin, ResolvedDocsConfig, ResolvedOptions, TocEntry, TransformResult, UnifiedPreset, createMdastPluginContext, _default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
package/dist/vite.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as unplugin } from "./src.mjs";
|
|
1
|
+
import { a as extractTocFromMdast, c as toUnifiedMdastPlugin, i as defineMdastPlugin, n as transformMarkdown, o as oxContentMdast, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin } from "./src.mjs";
|
|
2
2
|
//#region src/vite.ts
|
|
3
3
|
/**
|
|
4
4
|
* Vite plugin export for @ox-content/unplugin
|
|
5
5
|
*/
|
|
6
6
|
var vite_default = unplugin.vite;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { vite_default as default, unplugin };
|
|
8
|
+
export { createMdastPluginContext, vite_default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
package/dist/webpack.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as
|
|
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";
|
|
2
2
|
import * as unplugin$1 from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/webpack.d.ts
|
|
5
5
|
declare const _default: (options?: OxContentOptions | undefined) => unplugin$1.WebpackPluginInstance;
|
|
6
6
|
//#endregion
|
|
7
|
-
export {
|
|
7
|
+
export { DocsConfig, MarkdownItPlugin, MdastNode, MdastPlugin, MdastPluginContext, MdastRoot, MdastTransformer, OxContentMdastOptions, OxContentMdastPlugin, OxContentOptions, OxContentPlugin, PluginConfig, RehypePlugin, RemarkPlugin, ResolvedDocsConfig, ResolvedOptions, TocEntry, TransformResult, UnifiedPreset, createMdastPluginContext, _default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as unplugin } from "./src.mjs";
|
|
1
|
+
import { a as extractTocFromMdast, c as toUnifiedMdastPlugin, i as defineMdastPlugin, n as transformMarkdown, o as oxContentMdast, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin } from "./src.mjs";
|
|
2
2
|
//#region src/webpack.ts
|
|
3
3
|
/**
|
|
4
4
|
* Webpack plugin export for @ox-content/unplugin
|
|
5
5
|
*/
|
|
6
6
|
var webpack_default = unplugin.webpack;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { webpack_default as default, unplugin };
|
|
8
|
+
export { createMdastPluginContext, webpack_default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ox-content/unplugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "Universal plugin for Ox Content - Markdown processing for webpack, rollup, esbuild, vite, and more",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"esbuild",
|
|
@@ -56,21 +56,34 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@rollup/pluginutils": "^5.1.4",
|
|
59
|
-
"gray-matter": "^4.0.3",
|
|
60
59
|
"markdown-it": "^14.1.0",
|
|
61
60
|
"markdown-it-anchor": "^9.2.0",
|
|
61
|
+
"rehype-parse": "^9.0.1",
|
|
62
|
+
"rehype-remark": "^10.0.1",
|
|
62
63
|
"rehype-stringify": "^10.0.1",
|
|
63
64
|
"remark-parse": "^11.0.0",
|
|
64
65
|
"remark-rehype": "^11.1.1",
|
|
65
66
|
"unified": "^11.0.5",
|
|
66
67
|
"unplugin": "^2.1.2",
|
|
67
|
-
"@ox-content/napi": "2.
|
|
68
|
+
"@ox-content/napi": "2.10.0"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
71
|
"@types/markdown-it": "^14.1.2",
|
|
71
72
|
"@types/node": "^22.0.0",
|
|
72
73
|
"@typescript/native-preview": "^7.0.0-dev.20250601",
|
|
73
74
|
"esbuild": "^0.27.4",
|
|
75
|
+
"rehype-autolink-headings": "^7.1.0",
|
|
76
|
+
"rehype-external-links": "^3.0.0",
|
|
77
|
+
"rehype-katex": "^7.0.1",
|
|
78
|
+
"rehype-raw": "^7.0.0",
|
|
79
|
+
"rehype-sanitize": "^6.0.0",
|
|
80
|
+
"rehype-slug": "^6.0.0",
|
|
81
|
+
"remark-directive": "^4.0.0",
|
|
82
|
+
"remark-frontmatter": "^5.0.0",
|
|
83
|
+
"remark-gfm": "^4.0.1",
|
|
84
|
+
"remark-math": "^6.0.0",
|
|
85
|
+
"remark-smartypants": "^3.0.2",
|
|
86
|
+
"remark-toc": "^9.0.0",
|
|
74
87
|
"rollup": "^4.29.1",
|
|
75
88
|
"typescript": "^5.7.0",
|
|
76
89
|
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.11",
|