Update 'frontend.js'
This commit is contained in:
parent
faba842b73
commit
6024c762d5
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,9 @@
|
||||||
// Licensed under Samuel Public License with <3
|
// Licensed under Samuel Public License with <3
|
||||||
|
|
||||||
// Functions for commonly used elements
|
// Functions for commonly used elements
|
||||||
|
function getElementById(el) {
|
||||||
|
document.getElementById(el)
|
||||||
|
}
|
||||||
//Convert markdown to HTML and back
|
//Convert markdown to HTML and back
|
||||||
function markdownToHTML(markdown) {
|
function markdownToHTML(markdown) {
|
||||||
// Replace headers (h1, h2, h3) with corresponding HTML tags
|
// Replace headers (h1, h2, h3) with corresponding HTML tags
|
||||||
|
|
Loading…
Reference in a new issue