Update 'frontend.js'

This commit is contained in:
Maxwell Drake 2024-04-07 20:48:33 +00:00
parent faba842b73
commit 6024c762d5

View file

@ -3,7 +3,9 @@
// Licensed under Samuel Public License with <3
// Functions for commonly used elements
function getElementById(el) {
document.getElementById(el)
}
//Convert markdown to HTML and back
function markdownToHTML(markdown) {
// Replace headers (h1, h2, h3) with corresponding HTML tags