diff --git a/frontend.js b/frontend.js index 7e7dc87..dd2cd97 100644 --- a/frontend.js +++ b/frontend.js @@ -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