@readme/markdown 11.14.0 → 11.15.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.
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Preprocessor to normalize malformed GFM table separator syntax.
3
+ *
4
+ * Fixes the common mistake where the alignment colon is placed after the pipe
5
+ * instead of before the dashes:
6
+ *
7
+ * Invalid: `|: ---` or `|:---` (colon after pipe)
8
+ * Valid: `| :---` (colon before dashes)
9
+ *
10
+ * Also handles right alignment:
11
+ * Invalid: `| ---:| ` with space before pipe
12
+ * Valid: `| ---:|` (no space before closing pipe)
13
+ *
14
+ * This runs before remark-parse to ensure the table is recognized as a valid GFM table.
15
+ */
16
+ /**
17
+ * Preprocesses markdown content to normalize malformed table separator syntax.
18
+ *
19
+ * @param content - The raw markdown content
20
+ * @returns The content with normalized table separators
21
+ */
22
+ export declare function normalizeTableSeparator(content: string): string;
23
+ export default normalizeTableSeparator;
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": "11.14.0",
5
+ "version": "11.15.0",
6
6
  "main": "dist/main.node.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "browser": "dist/main.js",
@@ -1,9 +0,0 @@
1
- /**
2
- * Detects if content contains HTML, magic blocks, or MDX syntax.
3
- *
4
- * We can use this in some pipelines to determine if we should have to parse content through
5
- * `.plain() or if it is already plain text and it should be able to detect everything that would
6
- * be stripped or sanitized by `.plain()`.
7
- *
8
- */
9
- export default function isPlainText(content: string): boolean;