From f05929cd1788b2136f092e2c434b6d7152bf84e6 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 16 Dec 2018 11:41:15 +0100 Subject: [PATCH] All: Fixes #1033: Handle hard break when rendering Markdown to HTML --- ReactNativeClient/lib/MdToHtml.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ReactNativeClient/lib/MdToHtml.js b/ReactNativeClient/lib/MdToHtml.js index b1469aabc2..a8c55cd609 100644 --- a/ReactNativeClient/lib/MdToHtml.js +++ b/ReactNativeClient/lib/MdToHtml.js @@ -311,6 +311,8 @@ class MdToHtml { output.push(t.content); } else if (t.type === 'softbreak') { output.push('
'); + } else if (t.type === 'hardbreak') { + output.push('
'); } else if (t.type === 'hr') { output.push('
'); } else {