Rivista/rivista/assets/script/parse_markdown.js

8 lines
192 B
JavaScript
Raw Normal View History

// Parse Markdown
window.onload = function(){
for (element of document.querySelectorAll('#articles > ul > li > div > p')) {
element.innerHTML = marked.parse(element.textContent);
}
}