Update 'frontend.js'
This commit is contained in:
parent
6024c762d5
commit
04a521fe97
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue