Update 'frontend.js'
This commit is contained in:
parent
f09043c1ec
commit
d7c86180c1
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ function markdownToHTML(markdown) {
|
||||||
// Replace links with HTML <a> tag
|
// Replace links with HTML <a> tag
|
||||||
markdown = markdown.replace(/\[(.*?)\]\((.*?)\)/gim, '<a href="$2">$1</a>');
|
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;
|
return markdown;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue