@readme/markdown 14.3.0 → 14.4.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/components/Image/index.tsx +45 -23
- package/components/Image/style.scss +33 -0
- package/components/Tabs/index.tsx +5 -3
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/main.css +1 -1
- package/dist/main.css.map +1 -1
- package/dist/main.js +258 -148
- package/dist/main.node.js +258 -148
- package/dist/main.node.js.map +1 -1
- package/dist/processor/transform/mdxish/tables/tag-walker.d.ts +4 -0
- package/dist/processor/transform/mdxish/tables/utils.d.ts +1 -0
- package/dist/processor/transform/mdxish/terminate-html-flow-blocks.d.ts +8 -7
- package/package.json +2 -2
- package/types.d.ts +1 -0
|
@@ -8,14 +8,15 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @link https://spec.commonmark.org/0.29/#html-blocks
|
|
10
10
|
*
|
|
11
|
-
* This preprocessor inserts a blank line after standalone HTML lines when the
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* This preprocessor inserts a blank line after standalone HTML lines when the next
|
|
12
|
+
* line is non-blank and not an HTML construct, ensuring micromark's HTML flow
|
|
13
|
+
* tokenizer terminates and subsequent content is parsed independently.
|
|
14
14
|
*
|
|
15
15
|
* Conditions:
|
|
16
|
-
* 1. Only
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* 2. Lines inside protected blocks (e.g
|
|
16
|
+
* 1. Only non-indented lines with lowercase tag names are considered. Uppercase tags
|
|
17
|
+
* (e.g. `<Table>`, `<MyComponent>`) are JSX custom components and don't trigger
|
|
18
|
+
* CommonMark HTML blocks.
|
|
19
|
+
* 2. Lines inside protected blocks (e.g. fenced code) are left untouched.
|
|
20
|
+
* 3. Lines with an unclosed RAW_CONTENT_TAGS opener are exempted.
|
|
20
21
|
*/
|
|
21
22
|
export declare function terminateHtmlFlowBlocks(content: string): string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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.4.0",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
"path": "dist/main.node.js",
|
|
180
|
-
"maxSize": "
|
|
180
|
+
"maxSize": "947KB"
|
|
181
181
|
}
|
|
182
182
|
]
|
|
183
183
|
},
|