11 lines
246 B
JavaScript
11 lines
246 B
JavaScript
marked.use({
|
|
async: true,
|
|
breaks: true,
|
|
gfm: true,
|
|
});
|
|
|
|
(async () => {
|
|
for (const el of document.querySelectorAll('.markdown')) {
|
|
el.innerHTML = await marked.parse(el.textContent.replace(/(\t| )/g, " "));
|
|
}
|
|
})(); |