@ox-content/unplugin 3.0.0-alpha.1 → 3.0.0-alpha.10

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.mts CHANGED
@@ -290,6 +290,11 @@ interface OxContentOptions {
290
290
  * @default true
291
291
  */
292
292
  footnotes?: boolean;
293
+ /**
294
+ * Render footnotes as a semantic ordered section with numeric markers.
295
+ * @default false
296
+ */
297
+ semanticFootnotes?: boolean;
293
298
  /**
294
299
  * Enable tables.
295
300
  * @default true
@@ -404,6 +409,8 @@ interface ResolvedOptions {
404
409
  gfm: boolean;
405
410
  mdx?: boolean;
406
411
  footnotes: boolean;
412
+ /** Present after `resolveOptions`. Omitted in hand-built fixtures means off. */
413
+ semanticFootnotes?: boolean;
407
414
  tables: boolean;
408
415
  taskLists: boolean;
409
416
  strikethrough: boolean;
package/dist/src.mjs CHANGED
@@ -705,6 +705,7 @@ function createNapiTransformOptions(options, filePath) {
705
705
  gfm: options.gfm,
706
706
  mdx: resolveMdxForSourceFile(filePath, options.mdx),
707
707
  footnotes: options.footnotes,
708
+ semanticFootnotes: options.semanticFootnotes,
708
709
  taskLists: options.taskLists,
709
710
  tables: options.tables,
710
711
  strikethrough: options.strikethrough,
@@ -1290,6 +1291,7 @@ function resolveOptions(options) {
1290
1291
  gfm: options.gfm ?? true,
1291
1292
  mdx: options.mdx,
1292
1293
  footnotes: options.footnotes ?? true,
1294
+ semanticFootnotes: options.semanticFootnotes ?? false,
1293
1295
  tables: options.tables ?? true,
1294
1296
  taskLists: options.taskLists ?? true,
1295
1297
  strikethrough: options.strikethrough ?? true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ox-content/unplugin",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.0-alpha.10",
4
4
  "description": "Universal plugin for Ox Content - Markdown processing for webpack, rollup, esbuild, vite, and more",
5
5
  "keywords": [
6
6
  "esbuild",
@@ -65,7 +65,7 @@
65
65
  "remark-rehype": "^11.1.1",
66
66
  "unified": "^11.0.5",
67
67
  "unplugin": "^3.3.0",
68
- "@ox-content/napi": "3.0.0-alpha.1"
68
+ "@ox-content/napi": "3.0.0-alpha.10"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/markdown-it": "^14.2.0",