diff --git a/www/common/diffMarked.js b/www/common/diffMarked.js index 5c4942dbc..1b7f21e2b 100644 --- a/www/common/diffMarked.js +++ b/www/common/diffMarked.js @@ -63,8 +63,6 @@ define([ }; DiffMd.render = function (md, sanitize, restrictedMd) { - console.error("DIFFMD RENDER", restrictedMd); - console.log("md:\n", md); Marked.setOptions({ renderer: restrictedMd ? restrictedRenderer : renderer, }); @@ -183,14 +181,17 @@ define([ }; restrictedRenderer.image = renderer.image; + var renderParagraph = function (p) { + return //i.test(p)? p + '\n': '

' + p + '

\n'; + }; renderer.paragraph = function (p) { if (p === '[TOC]') { return '

'; } - return //i.test(p)? p + '\n': '

' + p + '

\n'; + return renderParagraph(p); }; restrictedRenderer.paragraph = function (p) { - return //i.test(p)? p + '\n': '

' + p + '

\n'; + return renderParagraph(p); }; var MutationObserver = window.MutationObserver;