@readme/markdown 13.1.3 → 13.2.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.
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
* @link https://spec.commonmark.org/0.29/#html-blocks
|
|
10
10
|
*
|
|
11
11
|
* This preprocessor inserts a blank line after standalone HTML lines when the
|
|
12
|
-
* next line is non-blank
|
|
13
|
-
* and subsequent content is parsed independently.
|
|
12
|
+
* next line is non-blank and not an HTML construct (because they still might be part of the HTML flow),
|
|
13
|
+
* ensuring micromark's HTML flow tokenizer terminates and subsequent content is parsed independently.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* Conditions:
|
|
16
|
+
* 1. Only targets non-indented lines with lowercase tag names. Uppercase tags
|
|
16
17
|
* (e.g., `<Table>`, `<MyComponent>`) are JSX custom components and don't
|
|
17
18
|
* trigger CommonMark HTML blocks, so they are left untouched.
|
|
18
|
-
*
|
|
19
|
-
* Lines inside fenced code blocks are skipped entirely.
|
|
19
|
+
* 2. Lines inside protected blocks (e.g., code blocks) should be left untouched.
|
|
20
20
|
*/
|
|
21
21
|
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": "13.
|
|
5
|
+
"version": "13.2.0",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|