revert last change as ineffective

main
macsplit 2022-05-12 20:35:31 +01:00
parent 4c95f760c7
commit 31005e81f1
1 changed files with 1 additions and 2 deletions

View File

@ -174,8 +174,7 @@ function code_block_to_markdown (html) {
if (match_code && match_code[1]) if (match_code && match_code[1])
inner_html = match_code[1]; inner_html = match_code[1];
inner_html = inner_html.replace(/(<([^>]+)>)/ig, ""); inner_html = inner_html.replace(/(<([^>]+)>)/ig, "");
inner_html = htmlentities.decode(inner_html); inner_html = htmlentities.decode(inner_html);
inner_html = inner_html.replace("\n","\r\n");
const markdown = "```\n"+inner_html+"\n```\n"; const markdown = "```\n"+inner_html+"\n```\n";
return markdown; return markdown;
} }