mdast2docx 0.0.0 → 0.1.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/chunk-3ZZBJC3M.mjs +1 -0
- package/dist/chunk-7LR5HC5O.mjs +4 -0
- package/dist/chunk-7W4N3GRD.mjs +75 -0
- package/dist/{chunk-KPLOM3EF.mjs → chunk-GM6UUFDK.mjs} +2 -2
- package/dist/chunk-XIRSNIMN.mjs +1 -0
- package/dist/chunk-Z5DPYROV.mjs +31 -0
- package/dist/chunk-ZKNVKZAF.mjs +1 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/multipart-parser-WKN2UV32.mjs +2 -0
- package/dist/plugins/image.d.ts +19 -11
- package/dist/plugins/image.js +1 -1
- package/dist/plugins/image.mjs +1 -1
- package/dist/plugins/index.js +75 -1
- package/dist/plugins/index.mjs +1 -1
- package/dist/plugins/list.js +1 -1
- package/dist/plugins/list.mjs +1 -1
- package/dist/plugins/math.d.ts +6 -0
- package/dist/plugins/math.js +75 -1
- package/dist/plugins/math.mjs +1 -1
- package/dist/plugins/node-image.d.ts +27 -0
- package/dist/plugins/node-image.js +35 -0
- package/dist/plugins/node-image.mjs +1 -0
- package/dist/plugins/node.d.ts +1 -0
- package/dist/plugins/node.js +35 -0
- package/dist/plugins/node.mjs +1 -0
- package/dist/plugins/table.mjs +1 -1
- package/dist/section.js +1 -1
- package/dist/section.mjs +1 -1
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +6 -2
- package/dist/chunk-RFHTB4AU.mjs +0 -1
- package/dist/chunk-XY2A2A66.mjs +0 -1
package/dist/plugins/math.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-7W4N3GRD.mjs";import"../chunk-ZKNVKZAF.mjs";import"../chunk-3ZZBJC3M.mjs";export{b as mathPlugin,a as parseLatex};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This plugin is not working at the moment because of issues in installing sharp or canvas
|
|
3
|
+
*/
|
|
4
|
+
import { IImageOptions } from "@mayank1513/docx";
|
|
5
|
+
import { IPlugin } from "../utils";
|
|
6
|
+
export declare const SUPPORTED_IMAGE_TYPES: readonly ["jpg", "gif", "png"];
|
|
7
|
+
interface INodeImagePluginOptions {
|
|
8
|
+
/**
|
|
9
|
+
* pathPrefix
|
|
10
|
+
*/
|
|
11
|
+
pathPrefix?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Fallback image type if the image type cannot be determined or is not supported.
|
|
14
|
+
* @default "png"
|
|
15
|
+
*/
|
|
16
|
+
fallbackImageType?: "png" | "jpg" | "gif";
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Resolves an image source URL into the appropriate image options for DOCX conversion.
|
|
20
|
+
*/
|
|
21
|
+
export type NodeImageResolver = (src: string, options?: INodeImagePluginOptions) => Promise<IImageOptions>;
|
|
22
|
+
/**
|
|
23
|
+
* Image plugin for processing inline image nodes in Markdown AST.
|
|
24
|
+
* This plugin is designed for server-side (node.js) environments.
|
|
25
|
+
*/
|
|
26
|
+
export declare const nodeImagePlugin: (options?: INodeImagePluginOptions) => IPlugin;
|
|
27
|
+
export {};
|