Update 'frontend.js'
This commit is contained in:
parent
d7c86180c1
commit
930eb4fdf4
1 changed files with 2 additions and 2 deletions
|
@ -42,9 +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>');
|
||||||
|
|
||||||
html = html.replaceAll("<ol><ul>", "")
|
markdown = markdown.replaceAll("<ol><ul>", "")
|
||||||
|
|
||||||
html = html.replaceAll("</ul></ol>", "")
|
markdown = markdown.replaceAll("</ul></ol>", "")
|
||||||
|
|
||||||
return markdown;
|
return markdown;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue