@readme/markdown 13.6.0 → 13.6.2

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.
@@ -2,8 +2,13 @@ import type { Transform } from 'mdast-util-from-markdown';
2
2
  /**
3
3
  * Converts JSX Table elements to markdown table nodes and re-parses markdown in cells.
4
4
  *
5
- * Since mdxish doesn't use remarkMdx, we manually parse cell contents through
6
- * remarkParse and remarkGfm to convert markdown to MDAST nodes.
5
+ * The jsxTable micromark tokenizer captures `<Table>...</Table>` as a single html node,
6
+ * preventing CommonMark HTML block type 6 from fragmenting it at blank lines. This
7
+ * transformer then re-parses the html node with remarkMdx to produce proper JSX AST nodes
8
+ * and converts them to MDAST table/tableRow/tableCell nodes.
9
+ *
10
+ * When cell content contains block-level nodes (callouts, code blocks, etc.), the table
11
+ * is kept as a JSX <Table> element so that remarkRehype can properly handle the flow content.
7
12
  */
8
13
  declare const mdxishTables: () => Transform;
9
14
  export default mdxishTables;
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.6.0",
5
+ "version": "13.6.2",
6
6
  "main": "dist/main.node.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "browser": "dist/main.js",
@@ -166,7 +166,7 @@
166
166
  },
167
167
  {
168
168
  "path": "dist/main.node.js",
169
- "maxSize": "825KB"
169
+ "maxSize": "835KB"
170
170
  }
171
171
  ]
172
172
  },