@ubean/markdown 0.2.1 → 0.3.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 "./vite-plugin-BipM_U9d.js";
1
+ import "./vite-plugin-CXC8lDXY.js";
2
2
  //#region src/mdx.d.ts
3
3
  interface MdxOptions {
4
4
  /** File path (for error reporting and relative imports). */
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { a as defineMarkdownPage, c as markdownToHtml, d as MdxCompileResult, f as MdxOptions, h as isMdxAvailableSync, i as ParsedMarkdown, l as parseFrontmatter, m as isMdxAvailable, n as MarkdownHeading, o as extractExcerpt, p as compileMdx, r as MarkdownOptions, s as extractHeadings, t as MarkdownFrontmatter, u as parseMarkdown } from "./index-CZrID6NJ.js";
2
- import { n as ubeanMdxPlugin, t as MdxVitePluginOptions } from "./vite-plugin-BipM_U9d.js";
1
+ import { a as defineMarkdownPage, c as markdownToHtml, d as MdxCompileResult, f as MdxOptions, h as isMdxAvailableSync, i as ParsedMarkdown, l as parseFrontmatter, m as isMdxAvailable, n as MarkdownHeading, o as extractExcerpt, p as compileMdx, r as MarkdownOptions, s as extractHeadings, t as MarkdownFrontmatter, u as parseMarkdown } from "./index-p38KkdSJ.js";
2
+ import { n as ubeanMdxPlugin, t as MdxVitePluginOptions } from "./vite-plugin-CXC8lDXY.js";
3
3
  export { MarkdownFrontmatter, MarkdownHeading, MarkdownOptions, type MdxCompileResult, type MdxOptions, type MdxVitePluginOptions, ParsedMarkdown, compileMdx, defineMarkdownPage, extractExcerpt, extractHeadings, isMdxAvailable, isMdxAvailableSync, markdownToHtml, parseFrontmatter, parseMarkdown, ubeanMdxPlugin };
package/dist/mdx.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { d as MdxCompileResult, f as MdxOptions, h as isMdxAvailableSync, m as isMdxAvailable, p as compileMdx } from "./index-CZrID6NJ.js";
1
+ import { d as MdxCompileResult, f as MdxOptions, h as isMdxAvailableSync, m as isMdxAvailable, p as compileMdx } from "./index-p38KkdSJ.js";
2
2
  export { MdxCompileResult, MdxOptions, compileMdx, isMdxAvailable, isMdxAvailableSync };
@@ -0,0 +1,15 @@
1
+ import { Plugin } from "vite";
2
+ //#region src/vite-plugin.d.ts
3
+ interface MdxVitePluginOptions {
4
+ /** Additional remark plugins passed to @mdx-js/mdx. */
5
+ remarkPlugins?: any[];
6
+ /** Additional rehype plugins passed to @mdx-js/mdx. */
7
+ rehypePlugins?: any[];
8
+ /** Include pattern for MDX files. */
9
+ include?: RegExp;
10
+ /** Exclude pattern for MDX files. */
11
+ exclude?: RegExp;
12
+ }
13
+ declare function ubeanMdxPlugin(options?: MdxVitePluginOptions): Plugin;
14
+ //#endregion
15
+ export { ubeanMdxPlugin as n, MdxVitePluginOptions as t };
@@ -1,2 +1,2 @@
1
- import { n as ubeanMdxPlugin, t as MdxVitePluginOptions } from "./vite-plugin-BipM_U9d.js";
1
+ import { n as ubeanMdxPlugin, t as MdxVitePluginOptions } from "./vite-plugin-CXC8lDXY.js";
2
2
  export { MdxVitePluginOptions, ubeanMdxPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubean/markdown",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Markdown parsing for ubean (frontmatter, headings, excerpt)",
5
5
  "files": [
6
6
  "dist"
@@ -24,7 +24,7 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "markdown-exit": "1.1.0-beta.2"
27
+ "markdown-exit": "1.2.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^26.2.0",