const _ = require('lodash'); const Markdown = require('marked'); const renderer = new Markdown.Renderer(); const lexer = new Markdown.Lexer(); //Processes the markdown within an HTML block if it's just a class-wrapper renderer.html = function (html) { if(_.startsWith(_.trim(html), '')+1); let closeTag = ''; html = html.substring(html.indexOf('>')+1); if(_.endsWith(_.trim(html), '')){ closeTag = ''; html = html.substring(0,html.lastIndexOf('')+1); if(!_.endsWith(_.trim(html), '>')){ // If there is no closing tag, parse markdown directly after let remainder = html.substring(html.indexOf('>')+1); return `${openTag} ${Markdown(remainder)}`; } } // Above may work better if we just explicitly allow \n'; } return code; }*/ const sanatizeScriptTags = (content)=>{ return content .replace(/