@ox-content/napi 2.81.0 → 2.82.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 +16 -3
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -1644,8 +1644,21 @@ export interface JsTransformOptions {
|
|
|
1644
1644
|
*/
|
|
1645
1645
|
attributes?: JsAttrsOptions
|
|
1646
1646
|
/**
|
|
1647
|
-
*
|
|
1648
|
-
*
|
|
1647
|
+
* Recognize emphasis whose delimiters sit against East Asian punctuation.
|
|
1648
|
+
*
|
|
1649
|
+
* CommonMark's flanking rules let punctuation on the outside of a `*`/`_`
|
|
1650
|
+
* run block it, and they read Unicode punctuation as a whole — so
|
|
1651
|
+
* `A**強調。**B` stays literal text. CJK sets punctuation directly against
|
|
1652
|
+
* the words it follows, which is why this bites there and rarely in Latin
|
|
1653
|
+
* text. Enabling this classifies East Asian punctuation as an ordinary
|
|
1654
|
+
* character for that decision only; halfwidth ASCII punctuation is
|
|
1655
|
+
* untouched, so Latin documents parse identically.
|
|
1656
|
+
*
|
|
1657
|
+
* Emphasis merely adjacent to CJK *characters* (`これは**重要**です`)
|
|
1658
|
+
* needs no option — CommonMark already allows it.
|
|
1659
|
+
*
|
|
1660
|
+
* Off by default because it is a deliberate deviation from the
|
|
1661
|
+
* specification.
|
|
1649
1662
|
*
|
|
1650
1663
|
* Default: `false`.
|
|
1651
1664
|
*/
|
|
@@ -1837,7 +1850,7 @@ export declare function render(astJson: string): RenderResult
|
|
|
1837
1850
|
/**
|
|
1838
1851
|
* Renders already-produced Markdown HTML into framework-native component code.
|
|
1839
1852
|
*
|
|
1840
|
-
* The `target` argument accepts `"react"`, `"vue"`, and `"svelte"`.
|
|
1853
|
+
* The `target` argument accepts `"react"`, `"solid"`, `"vue"`, and `"svelte"`.
|
|
1841
1854
|
* `mode` defaults to `"expression"` for backward compatibility.
|
|
1842
1855
|
*/
|
|
1843
1856
|
export declare function renderFrameworkComponentCode(html: string, target: string, islands?: Array<JsFrameworkComponentIsland> | undefined | null, mode?: string | undefined | null): string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ox-content/napi",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.82.0",
|
|
4
4
|
"description": "Node.js bindings for Ox Content - High-performance Markdown parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"build:debug": "napi build"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@napi-rs/cli": "^3.
|
|
34
|
+
"@napi-rs/cli": "^3.8.2"
|
|
35
35
|
},
|
|
36
36
|
"napi": {
|
|
37
37
|
"binaryName": "ox-content",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@ox-content/binding-darwin-x64": "2.
|
|
51
|
-
"@ox-content/binding-darwin-arm64": "2.
|
|
52
|
-
"@ox-content/binding-linux-x64-gnu": "2.
|
|
53
|
-
"@ox-content/binding-linux-x64-musl": "2.
|
|
54
|
-
"@ox-content/binding-linux-arm64-gnu": "2.
|
|
55
|
-
"@ox-content/binding-linux-arm64-musl": "2.
|
|
56
|
-
"@ox-content/binding-win32-x64-msvc": "2.
|
|
50
|
+
"@ox-content/binding-darwin-x64": "2.82.0",
|
|
51
|
+
"@ox-content/binding-darwin-arm64": "2.82.0",
|
|
52
|
+
"@ox-content/binding-linux-x64-gnu": "2.82.0",
|
|
53
|
+
"@ox-content/binding-linux-x64-musl": "2.82.0",
|
|
54
|
+
"@ox-content/binding-linux-arm64-gnu": "2.82.0",
|
|
55
|
+
"@ox-content/binding-linux-arm64-musl": "2.82.0",
|
|
56
|
+
"@ox-content/binding-win32-x64-msvc": "2.82.0"
|
|
57
57
|
}
|
|
58
58
|
}
|