Last active
October 31, 2020 17:18
-
-
Save JoseJuan81/aeac7ef33260ae6ed1387a4210f049cd to your computer and use it in GitHub Desktop.
// source https://jsbin.com - JS Markdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Lorem Ipsum</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<div class="markdown"> | |
# Tenebor nunc praedictaque | |
## Constitit forte delubraque gladio soporem dum odium | |
- Lista 1 | |
- Lista 2 | |
- Lista 3 | |
Lorem markdownum gratare stellamque senis quiescere auxiliaria tuos tetigere | |
horrenda reposcunt, vulnera aether deus saevior merguntque cortex spatii; | |
sucoque? Falcato omnes, laborum quem quaeris | |
[nomen](http://www.praequestus.com/loqui.html) cede dolore, nebulas *Pandione*. | |
</div> | |
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> | |
<script> | |
var l = document.getElementsByClassName('markdown'); | |
var i; | |
for (i = 0; i < l.length; i++) { | |
console.log(l.length) | |
l[i].innerHTML = marked(l[i].innerHTML); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment