@readme/markdown 13.0.0 → 13.1.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/dist/lib/mdxish.d.ts +10 -0
- package/dist/main.js +435 -151
- package/dist/main.node.js +435 -151
- package/dist/main.node.js.map +1 -1
- package/package.json +1 -1
package/dist/lib/mdxish.d.ts
CHANGED
|
@@ -6,6 +6,16 @@ export interface MdxishOpts {
|
|
|
6
6
|
components?: CustomComponents;
|
|
7
7
|
jsxContext?: JSXContext;
|
|
8
8
|
newEditorTypes?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* When enabled, the pipeline ignores all expression syntax `{...}`.
|
|
11
|
+
* This disables:
|
|
12
|
+
* - JSX attribute expression evaluation (e.g., `href={baseUrl}`)
|
|
13
|
+
* - MDX expression parsing (e.g., `{1 + 1}`)
|
|
14
|
+
* - Expression node evaluation
|
|
15
|
+
*
|
|
16
|
+
* Expressions will remain as literal text in the output.
|
|
17
|
+
*/
|
|
18
|
+
safeMode?: boolean;
|
|
9
19
|
useTailwind?: boolean;
|
|
10
20
|
}
|
|
11
21
|
export declare function mdxishAstProcessor(mdContent: string, opts?: MdxishOpts): {
|