@ox-content/napi 3.0.0-alpha.11 → 3.0.0-alpha.13
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 +49 -0
- package/index.js +1 -0
- package/package.json +8 -8
package/index.d.ts
CHANGED
|
@@ -916,6 +916,16 @@ export interface JsEmbedDiagnostic {
|
|
|
916
916
|
fallback: string
|
|
917
917
|
}
|
|
918
918
|
|
|
919
|
+
/** One provider tag as authors write it. */
|
|
920
|
+
export interface JsEmbedTag {
|
|
921
|
+
name: string
|
|
922
|
+
/**
|
|
923
|
+
* True when only the PascalCase spelling is an embed, because the
|
|
924
|
+
* lowercase one is a real HTML element.
|
|
925
|
+
*/
|
|
926
|
+
pascalOnly: boolean
|
|
927
|
+
}
|
|
928
|
+
|
|
919
929
|
/** Emoji-shortcode transform options. */
|
|
920
930
|
export interface JsEmojiShortcodeOptions {
|
|
921
931
|
/**
|
|
@@ -1625,6 +1635,36 @@ export interface JsMediaEmbedsOptions {
|
|
|
1625
1635
|
* Default: `false`.
|
|
1626
1636
|
*/
|
|
1627
1637
|
video?: boolean
|
|
1638
|
+
/**
|
|
1639
|
+
* Render `<Loom>` recording cards.
|
|
1640
|
+
*
|
|
1641
|
+
* Default: `false`.
|
|
1642
|
+
*/
|
|
1643
|
+
loom?: boolean
|
|
1644
|
+
/**
|
|
1645
|
+
* Render `<Asciinema>` terminal-recording cards.
|
|
1646
|
+
*
|
|
1647
|
+
* Default: `false`.
|
|
1648
|
+
*/
|
|
1649
|
+
asciinema?: boolean
|
|
1650
|
+
/**
|
|
1651
|
+
* Render `<Figma>` file, design, board, and prototype cards.
|
|
1652
|
+
*
|
|
1653
|
+
* Default: `false`.
|
|
1654
|
+
*/
|
|
1655
|
+
figma?: boolean
|
|
1656
|
+
/**
|
|
1657
|
+
* Render `<Note>` note.com article cards.
|
|
1658
|
+
*
|
|
1659
|
+
* Default: `false`.
|
|
1660
|
+
*/
|
|
1661
|
+
note?: boolean
|
|
1662
|
+
/**
|
|
1663
|
+
* Render `<GoogleSlides>` deck cards.
|
|
1664
|
+
*
|
|
1665
|
+
* Default: `false`.
|
|
1666
|
+
*/
|
|
1667
|
+
googleSlides?: boolean
|
|
1628
1668
|
}
|
|
1629
1669
|
|
|
1630
1670
|
/** Rewritten HTML plus every tag an enabled provider refused. */
|
|
@@ -3020,6 +3060,15 @@ export interface MdxImportSpecifier {
|
|
|
3020
3060
|
kind: 'default' | 'named' | 'namespace'
|
|
3021
3061
|
}
|
|
3022
3062
|
|
|
3063
|
+
/**
|
|
3064
|
+
* Every tag the media-embed transform can rewrite.
|
|
3065
|
+
*
|
|
3066
|
+
* A caller that pre-scans a document to decide whether to run the transform
|
|
3067
|
+
* needs this list, and a hand-kept copy drifts — that is how `<CodeSandbox>`
|
|
3068
|
+
* came to be skipped on a page containing nothing else.
|
|
3069
|
+
*/
|
|
3070
|
+
export declare function mediaEmbedTags(): Array<JsEmbedTag>
|
|
3071
|
+
|
|
3023
3072
|
/** Restores code block metadata after JavaScript-side syntax highlighting. */
|
|
3024
3073
|
export declare function mergeHighlightedCodeBlocks(originalHtml: string, highlightedHtml: string): string
|
|
3025
3074
|
|
package/index.js
CHANGED
|
@@ -248,6 +248,7 @@ module.exports.renderFrameworkComponentCode = binding.renderFrameworkComponentCo
|
|
|
248
248
|
module.exports.renderSsgSectionIndex = binding.renderSsgSectionIndex;
|
|
249
249
|
module.exports.parseFeedDate = binding.parseFeedDate;
|
|
250
250
|
module.exports.generateFeedBodies = binding.generateFeedBodies;
|
|
251
|
+
module.exports.mediaEmbedTags = binding.mediaEmbedTags;
|
|
251
252
|
module.exports.transformCrossReferences = binding.transformCrossReferences;
|
|
252
253
|
module.exports.planRedirects = binding.planRedirects;
|
|
253
254
|
module.exports.renderRedirectHtml = binding.renderRedirectHtml;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ox-content/napi",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.13",
|
|
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-alpha.
|
|
51
|
-
"@ox-content/binding-darwin-arm64": "3.0.0-alpha.
|
|
52
|
-
"@ox-content/binding-linux-x64-gnu": "3.0.0-alpha.
|
|
53
|
-
"@ox-content/binding-linux-x64-musl": "3.0.0-alpha.
|
|
54
|
-
"@ox-content/binding-linux-arm64-gnu": "3.0.0-alpha.
|
|
55
|
-
"@ox-content/binding-linux-arm64-musl": "3.0.0-alpha.
|
|
56
|
-
"@ox-content/binding-win32-x64-msvc": "3.0.0-alpha.
|
|
50
|
+
"@ox-content/binding-darwin-x64": "3.0.0-alpha.13",
|
|
51
|
+
"@ox-content/binding-darwin-arm64": "3.0.0-alpha.13",
|
|
52
|
+
"@ox-content/binding-linux-x64-gnu": "3.0.0-alpha.13",
|
|
53
|
+
"@ox-content/binding-linux-x64-musl": "3.0.0-alpha.13",
|
|
54
|
+
"@ox-content/binding-linux-arm64-gnu": "3.0.0-alpha.13",
|
|
55
|
+
"@ox-content/binding-linux-arm64-musl": "3.0.0-alpha.13",
|
|
56
|
+
"@ox-content/binding-win32-x64-msvc": "3.0.0-alpha.13"
|
|
57
57
|
}
|
|
58
58
|
}
|