@readme/markdown 14.10.3 → 14.11.1

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.
@@ -21,6 +21,13 @@ export declare const RUNTIME_COMPONENT_TAGS: Set<string>;
21
21
  * Uses the html-tags package, converted to a Set<string> for efficient lookups.
22
22
  */
23
23
  export declare const STANDARD_HTML_TAGS: Set<string>;
24
+ /**
25
+ * Table structural tags. Blank lines inside these carry deliberate meaning for
26
+ * `mdxishTables` (e.g. splitting cell content into paragraphs, or deciding
27
+ * whether a table stays plain HTML vs a JSX `<Table>`), so transforms that
28
+ * neutralize or claim across blank lines must leave them alone.
29
+ */
30
+ export declare const HTML_TABLE_STRUCTURE_TAGS: Set<string>;
24
31
  /**
25
32
  * HTML void elements — elements that have no closing tag and no children.
26
33
  *
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.10.3",
5
+ "version": "14.11.1",
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;