@ox-content/napi 3.0.0-beta.13 → 3.0.0-beta.14
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 +60 -0
- package/package.json +8 -8
package/index.d.ts
CHANGED
|
@@ -1934,6 +1934,36 @@ export interface JsParserOptions {
|
|
|
1934
1934
|
* Default: `false`, or `true` when `gfm` is `true`.
|
|
1935
1935
|
*/
|
|
1936
1936
|
autolinks?: boolean
|
|
1937
|
+
/**
|
|
1938
|
+
* Enable `^text^` superscript spans.
|
|
1939
|
+
*
|
|
1940
|
+
* Default: `false`.
|
|
1941
|
+
*/
|
|
1942
|
+
superscript?: boolean
|
|
1943
|
+
/**
|
|
1944
|
+
* Enable `~text~` subscript spans.
|
|
1945
|
+
*
|
|
1946
|
+
* Default: `false`.
|
|
1947
|
+
*/
|
|
1948
|
+
subscript?: boolean
|
|
1949
|
+
/**
|
|
1950
|
+
* Enable smart punctuation replacement.
|
|
1951
|
+
*
|
|
1952
|
+
* Default: `false`.
|
|
1953
|
+
*/
|
|
1954
|
+
smartPunctuation?: boolean
|
|
1955
|
+
/**
|
|
1956
|
+
* Enable `$...$` inline math and `$$...$$` block math.
|
|
1957
|
+
*
|
|
1958
|
+
* Default: `false`.
|
|
1959
|
+
*/
|
|
1960
|
+
math?: boolean
|
|
1961
|
+
/**
|
|
1962
|
+
* Enable definition list blocks.
|
|
1963
|
+
*
|
|
1964
|
+
* Default: `false`.
|
|
1965
|
+
*/
|
|
1966
|
+
definitionLists?: boolean
|
|
1937
1967
|
}
|
|
1938
1968
|
|
|
1939
1969
|
/** Opt-in parameterized Markdown partials. */
|
|
@@ -2814,6 +2844,24 @@ export interface JsTransformOptions {
|
|
|
2814
2844
|
* Default: `false`, or `true` when `gfm` is `true`.
|
|
2815
2845
|
*/
|
|
2816
2846
|
autolinks?: boolean
|
|
2847
|
+
/**
|
|
2848
|
+
* Enable `^text^` superscript spans.
|
|
2849
|
+
*
|
|
2850
|
+
* Default: `false`.
|
|
2851
|
+
*/
|
|
2852
|
+
superscript?: boolean
|
|
2853
|
+
/**
|
|
2854
|
+
* Enable `~text~` subscript spans.
|
|
2855
|
+
*
|
|
2856
|
+
* Default: `false`.
|
|
2857
|
+
*/
|
|
2858
|
+
subscript?: boolean
|
|
2859
|
+
/**
|
|
2860
|
+
* Enable smart punctuation replacement.
|
|
2861
|
+
*
|
|
2862
|
+
* Default: `false`.
|
|
2863
|
+
*/
|
|
2864
|
+
smartPunctuation?: boolean
|
|
2817
2865
|
/**
|
|
2818
2866
|
* Parse YAML frontmatter before transforming.
|
|
2819
2867
|
*
|
|
@@ -2889,6 +2937,18 @@ export interface JsTransformOptions {
|
|
|
2889
2937
|
* Default: `true`; ignored when [`Self::autolink_urls`] is off.
|
|
2890
2938
|
*/
|
|
2891
2939
|
autolinkTargetBlank?: boolean
|
|
2940
|
+
/**
|
|
2941
|
+
* Add `target="_blank" rel="noopener noreferrer"` to parsed http(s) links.
|
|
2942
|
+
*
|
|
2943
|
+
* Default: `true`.
|
|
2944
|
+
*/
|
|
2945
|
+
linkTargetBlank?: boolean
|
|
2946
|
+
/**
|
|
2947
|
+
* Emit `data-source-span="start-end"` on rendered block elements.
|
|
2948
|
+
*
|
|
2949
|
+
* Default: `false`.
|
|
2950
|
+
*/
|
|
2951
|
+
sourceSpans?: boolean
|
|
2892
2952
|
/**
|
|
2893
2953
|
* Opt-in visible heading permalinks (`<a class="header-anchor" href="#id">`).
|
|
2894
2954
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ox-content/napi",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.14",
|
|
4
4
|
"description": "Node.js bindings for Ox Content - High-performance Markdown parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"@ox-content/binding-darwin-x64": "3.0.0-beta.
|
|
51
|
-
"@ox-content/binding-darwin-arm64": "3.0.0-beta.
|
|
52
|
-
"@ox-content/binding-linux-x64-gnu": "3.0.0-beta.
|
|
53
|
-
"@ox-content/binding-linux-x64-musl": "3.0.0-beta.
|
|
54
|
-
"@ox-content/binding-linux-arm64-gnu": "3.0.0-beta.
|
|
55
|
-
"@ox-content/binding-linux-arm64-musl": "3.0.0-beta.
|
|
56
|
-
"@ox-content/binding-win32-x64-msvc": "3.0.0-beta.
|
|
50
|
+
"@ox-content/binding-darwin-x64": "3.0.0-beta.14",
|
|
51
|
+
"@ox-content/binding-darwin-arm64": "3.0.0-beta.14",
|
|
52
|
+
"@ox-content/binding-linux-x64-gnu": "3.0.0-beta.14",
|
|
53
|
+
"@ox-content/binding-linux-x64-musl": "3.0.0-beta.14",
|
|
54
|
+
"@ox-content/binding-linux-arm64-gnu": "3.0.0-beta.14",
|
|
55
|
+
"@ox-content/binding-linux-arm64-musl": "3.0.0-beta.14",
|
|
56
|
+
"@ox-content/binding-win32-x64-msvc": "3.0.0-beta.14"
|
|
57
57
|
}
|
|
58
58
|
}
|