From 04a521fe97dbe119e0f8eee74b4d7f8211b9e028 Mon Sep 17 00:00:00 2001 From: Maxwell Drake Date: Sun, 7 Apr 2024 20:50:02 +0000 Subject: [PATCH] Update 'frontend.js' --- frontend.js | 2 ++ 1 file changed, 2 insertions(+) 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