@xsynaptic/unified-tools 5.1.0 → 5.1.2

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +2 -10
  2. package/package.json +2 -2
package/dist/index.d.mts CHANGED
@@ -1,13 +1,9 @@
1
1
  import { RehypeWrapCjkOptions } from "@xsynaptic/rehype-wrap-cjk";
2
2
  import { Options, defaultSchema } from "rehype-sanitize";
3
3
  import { Options as Options$1 } from "retext-smartypants";
4
-
5
4
  //#region src/html-cjk.d.ts
6
5
  declare function wrapChinese(input: string): string;
7
- declare function wrapCjk({
8
- input,
9
- wrapCjkOptions
10
- }: {
6
+ declare function wrapCjk({ input, wrapCjkOptions }: {
11
7
  input: string;
12
8
  wrapCjkOptions: Partial<RehypeWrapCjkOptions>;
13
9
  }): string;
@@ -24,11 +20,7 @@ interface TransformMarkdownOptions {
24
20
  smartypantsOptions?: Options$1 | undefined;
25
21
  wrapCjkOptions?: Partial<RehypeWrapCjkOptions> | undefined;
26
22
  }
27
- declare function transformMarkdown({
28
- input,
29
- smartypantsOptions,
30
- wrapCjkOptions
31
- }: TransformMarkdownOptions): string;
23
+ declare function transformMarkdown({ input, smartypantsOptions, wrapCjkOptions }: TransformMarkdownOptions): string;
32
24
  //#endregion
33
25
  //#region src/mdx.d.ts
34
26
  declare function sanitizeMdx(input: string, options?: Options): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsynaptic/unified-tools",
3
- "version": "5.1.0",
3
+ "version": "5.1.2",
4
4
  "description": "A common set of tools for transforming and manipulating markup and text",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  "retext": "^9.0.0",
46
46
  "retext-smartypants": "^6.2.0",
47
47
  "unified": "^11.0.5",
48
- "@xsynaptic/rehype-wrap-cjk": "3.0.0"
48
+ "@xsynaptic/rehype-wrap-cjk": "3.0.2"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsdown",