From 83c9c6f1c8a91d55e1768ac06d34999288d846c4 Mon Sep 17 00:00:00 2001 From: Ankit Gupta Date: Thu, 6 Feb 2020 19:08:28 +0530 Subject: [PATCH 1/2] UL tag is not creating a block element. AnyTime Ul is encountered it should startv with a new line --- htmlToElement.js | 1 + 1 file changed, 1 insertion(+) diff --git a/htmlToElement.js b/htmlToElement.js index fc9151d..1d0b346 100644 --- a/htmlToElement.js +++ b/htmlToElement.js @@ -104,6 +104,7 @@ export default function htmlToElement(rawHtml, customOpts = {}, done) { let linebreakAfter = null; if (opts.addLineBreaks) { switch (node.name) { + case 'ul': case 'pre': linebreakBefore = opts.lineBreak; break; From 8912fc2cca508f737c18f18f44a08a27cf7cb779 Mon Sep 17 00:00:00 2001 From: Ankit Gupta Date: Fri, 28 Feb 2020 13:31:23 +0530 Subject: [PATCH 2/2] UL tag is not creating a block element. AnyTime Ul is encountered it should startv with a new line --- htmlToElement.js | 1 + 1 file changed, 1 insertion(+) diff --git a/htmlToElement.js b/htmlToElement.js index 1d0b346..300991c 100644 --- a/htmlToElement.js +++ b/htmlToElement.js @@ -105,6 +105,7 @@ export default function htmlToElement(rawHtml, customOpts = {}, done) { if (opts.addLineBreaks) { switch (node.name) { case 'ul': + linebreakAfter = opts.lineBreak; case 'pre': linebreakBefore = opts.lineBreak; break;