@ox-content/napi 2.71.0 → 2.73.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/index.d.ts +4 -4
- package/package.json +6 -6
package/index.d.ts
CHANGED
|
@@ -1576,7 +1576,7 @@ export interface JsTransformOptions {
|
|
|
1576
1576
|
* text occurrence starting with a registered pattern (default `http://`
|
|
1577
1577
|
* and `https://`) in an `<a>` tag.
|
|
1578
1578
|
*
|
|
1579
|
-
* Default: `
|
|
1579
|
+
* Default: `true`.
|
|
1580
1580
|
*/
|
|
1581
1581
|
autolinkUrls?: boolean
|
|
1582
1582
|
/**
|
|
@@ -1804,10 +1804,10 @@ export declare function render(astJson: string): RenderResult
|
|
|
1804
1804
|
/**
|
|
1805
1805
|
* Renders already-produced Markdown HTML into framework-native component code.
|
|
1806
1806
|
*
|
|
1807
|
-
* The `target` argument
|
|
1808
|
-
*
|
|
1807
|
+
* The `target` argument accepts `"react"`, `"vue"`, and `"svelte"`.
|
|
1808
|
+
* `mode` defaults to `"expression"` for backward compatibility.
|
|
1809
1809
|
*/
|
|
1810
|
-
export declare function renderFrameworkComponentCode(html: string, target: string, islands?: Array<JsFrameworkComponentIsland> | undefined | null): string
|
|
1810
|
+
export declare function renderFrameworkComponentCode(html: string, target: string, islands?: Array<JsFrameworkComponentIsland> | undefined | null, mode?: string | undefined | null): string
|
|
1811
1811
|
|
|
1812
1812
|
/** Render result containing the HTML output. */
|
|
1813
1813
|
export interface RenderResult {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ox-content/napi",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.73.0",
|
|
4
4
|
"description": "Node.js bindings for Ox Content - High-performance Markdown parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"@ox-content/binding-darwin-x64": "2.
|
|
49
|
-
"@ox-content/binding-darwin-arm64": "2.
|
|
50
|
-
"@ox-content/binding-linux-x64-gnu": "2.
|
|
51
|
-
"@ox-content/binding-linux-arm64-gnu": "2.
|
|
52
|
-
"@ox-content/binding-win32-x64-msvc": "2.
|
|
48
|
+
"@ox-content/binding-darwin-x64": "2.73.0",
|
|
49
|
+
"@ox-content/binding-darwin-arm64": "2.73.0",
|
|
50
|
+
"@ox-content/binding-linux-x64-gnu": "2.73.0",
|
|
51
|
+
"@ox-content/binding-linux-arm64-gnu": "2.73.0",
|
|
52
|
+
"@ox-content/binding-win32-x64-msvc": "2.73.0"
|
|
53
53
|
}
|
|
54
54
|
}
|