Update 'frontend.js'

This commit is contained in:
nodemixaholic 2024-03-31 21:31:45 +00:00
parent f09043c1ec
commit d7c86180c1

View file

@ -42,7 +42,9 @@ function markdownToHTML(markdown) {
// Replace links with HTML <a> tag
markdown = markdown.replace(/\[(.*?)\]\((.*?)\)/gim, '<a href="$2">$1</a>');
markdown = markdown.replaceAll("</ul></ol>", "")
html = html.replaceAll("<ol><ul>", "")
html = html.replaceAll("</ul></ol>", "")
return markdown;
}