Update 'frontend.js'

This commit is contained in:
Maxwell Drake 2024-04-07 20:50:02 +00:00
parent 6024c762d5
commit 04a521fe97

View file

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