diff --git a/EnvelopeGenerator.Web/wwwroot/js/markdown.js b/EnvelopeGenerator.Web/wwwroot/js/markdown.js index ec5d16d2..0e3cdec1 100644 --- a/EnvelopeGenerator.Web/wwwroot/js/markdown.js +++ b/EnvelopeGenerator.Web/wwwroot/js/markdown.js @@ -4,8 +4,8 @@ marked.use({ gfm: true, }); -( - document.querySelectorAll('.markdown').forEach(async el => { - el.innerHTML = await marked.parse(el.textContent); - }) -)() \ No newline at end of file +(async () => { + for (const el of document.querySelectorAll('.markdown')) { + el.innerHTML = await marked.parse(el.textContent.replace(/(\t| )/g, " ")); + } +})(); \ No newline at end of file diff --git a/EnvelopeGenerator.Web/wwwroot/js/markdown.min.js b/EnvelopeGenerator.Web/wwwroot/js/markdown.min.js index 848d8c00..ce11c38c 100644 --- a/EnvelopeGenerator.Web/wwwroot/js/markdown.min.js +++ b/EnvelopeGenerator.Web/wwwroot/js/markdown.min.js @@ -1 +1 @@ -marked.use({"async":!0,breaks:!0,gfm:!0});document.querySelectorAll(".markdown").forEach(async n=>{n.innerHTML=await marked.parse(n.textContent)})(); \ No newline at end of file +marked.use({"async":!0,breaks:!0,gfm:!0});(async()=>{for(const n of document.querySelectorAll(".markdown"))n.innerHTML=await marked.parse(n.textContent.replace(/(\t| )/g," "))})(); \ No newline at end of file