@readme/markdown 14.10.3 → 14.11.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/index.d.ts +1 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/micromark/mdx-expression-lenient/index.d.ts +1 -0
- package/dist/lib/micromark/mdx-expression-lenient/syntax.d.ts +2 -0
- package/dist/main.js +143 -207
- package/dist/main.node.js +143 -207
- package/dist/main.node.js.map +1 -1
- package/dist/processor/transform/mdxish/remove-jsx-comments.d.ts +11 -0
- package/dist/processor/transform/mdxish/resolve-esm-imports.d.ts +13 -0
- package/dist/render-fixture.node.js +143 -207
- package/dist/render-fixture.node.js.map +1 -1
- package/package.json +2 -2
- package/dist/processor/transform/mdxish/preprocess-jsx-expressions.d.ts +0 -23
package/package.json
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"name": "@readme/markdown",
|
|
3
3
|
"description": "ReadMe's React-based Markdown parser",
|
|
4
4
|
"author": "Rafe Goldberg <rafe@readme.io>",
|
|
5
|
-
"version": "14.
|
|
5
|
+
"version": "14.11.0",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
|
-
"browser": "./dist/main.js",
|
|
13
12
|
"node": "./dist/main.node.js",
|
|
13
|
+
"browser": "./dist/main.js",
|
|
14
14
|
"default": "./dist/main.node.js"
|
|
15
15
|
},
|
|
16
16
|
"./render-diff": {
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Removes JSX-style comments (e.g., { /* comment *\/ }) from content.
|
|
3
|
-
*
|
|
4
|
-
* @param content
|
|
5
|
-
* @returns Content with JSX comments removed
|
|
6
|
-
* @example
|
|
7
|
-
* ```typescript
|
|
8
|
-
* removeJSXComments('Text { /* comment *\/ } more text')
|
|
9
|
-
* // Returns: 'Text more text'
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
export declare function removeJSXComments(content: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* Preprocesses JSX-like markdown content before parsing.
|
|
15
|
-
*
|
|
16
|
-
* JSX attribute expressions (`href={baseUrl}`) are no longer rewritten here —
|
|
17
|
-
* they flow through the tokenizer as `mdxJsxAttributeValueExpression` nodes
|
|
18
|
-
* and are evaluated at the hast handler step.
|
|
19
|
-
*
|
|
20
|
-
* @param content
|
|
21
|
-
* @returns Preprocessed content ready for markdown parsing
|
|
22
|
-
*/
|
|
23
|
-
export declare function preprocessJSXExpressions(content: string): string;
|