From 31005e81f19c8c077a3dab48aadefe24df5b21f2 Mon Sep 17 00:00:00 2001 From: macsplit Date: Thu, 12 May 2022 20:35:31 +0100 Subject: [PATCH] revert last change as ineffective --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 4558db6..09a781c 100755 --- a/index.js +++ b/index.js @@ -174,8 +174,7 @@ function code_block_to_markdown (html) { if (match_code && match_code[1]) inner_html = match_code[1]; inner_html = inner_html.replace(/(<([^>]+)>)/ig, ""); - inner_html = htmlentities.decode(inner_html); - inner_html = inner_html.replace("\n","\r\n"); + inner_html = htmlentities.decode(inner_html); const markdown = "```\n"+inner_html+"\n```\n"; return markdown; }