diff --git a/.changeset/eleven-bugs-report.md b/.changeset/eleven-bugs-report.md new file mode 100644 index 0000000..b75b251 --- /dev/null +++ b/.changeset/eleven-bugs-report.md @@ -0,0 +1,5 @@ +--- +'markdown-to-jsx': patch +--- + +Handle paragraph splitting better, fixes #641. diff --git a/index.compiler.spec.tsx b/index.compiler.spec.tsx index 007f3a9..1bc9b95 100644 --- a/index.compiler.spec.tsx +++ b/index.compiler.spec.tsx @@ -2574,6 +2574,56 @@ describe('GFM tables', () => { `) }) + + it('#641 handles only a single newline prior to the start of the table', () => { + render( + compiler(theredoc` + Test + | Nested HTML | Link | + | ---------------------------------- | ---------------------------- | + |
+ Test +
++ Nested HTML + | ++ Link + | +
---|---|
+
+
+ Nested
+
+
+ |
+
+
+ I'm a
+
+ link
+
+
+ |
+