From d6231a910d1bd8a0a0cbe0cd522d1ba9b6259fa8 Mon Sep 17 00:00:00 2001 From: m-architek Date: Thu, 11 Oct 2018 01:20:38 +0200 Subject: [PATCH] fix #214 - Nested paragraphs not work correctly inside arbitrary html (#215) --- __snapshots__/index.spec.js.snap | 13 +++++++++++++ index.js | 1 + index.spec.js | 16 ++++++++++++++++ 3 files changed, 30 insertions(+) diff --git a/__snapshots__/index.spec.js.snap b/__snapshots__/index.spec.js.snap index ad6099df..97a30215 100644 --- a/__snapshots__/index.spec.js.snap +++ b/__snapshots__/index.spec.js.snap @@ -370,6 +370,19 @@ exports[`markdown-to-jsx compiler arbitrary HTML #207 handles tables inside HTML `; +exports[`markdown-to-jsx compiler arbitrary HTML #214 nested paragraphs work inside html 1`] = ` + +
+

+ Hello +

+

+ World +

+
+ +`; + exports[`markdown-to-jsx compiler arbitrary HTML allows whitespace between attribute and value 1`] = `
{ + render( + compiler( + [ + '
', + 'Hello', + '', + 'World', + '
', + ].join('\n') + ) + ); + + expect(root.innerHTML).toMatchSnapshot(); + }); }); describe('horizontal rules', () => {