Allow HTML inside markdown

master
Tait Hoyem 3 years ago
parent dbff744bcd
commit bbd6dfb1c4

@ -68,7 +68,9 @@ const saveMd = async () => {
const renderHTML = async () => {
setStatus("Rendering...");
const md = new remarkable.Remarkable();
const md = new remarkable.Remarkable({
html: true,
});
const markdownInput = document.getElementById("markdown-input");
const htmlOutput = document.getElementById("html-output");
const newHtml = md.render(markdownInput.value);

@ -68,7 +68,9 @@ const saveMd = async () => {
const renderHTML = async () => {
setStatus("Rendering...");
const md = new remarkable.Remarkable();
const md = new remarkable.Remarkable({
html: true,
});
const markdownInput = document.getElementById("markdown-input");
const htmlOutput = document.getElementById("html-output");
const newHtml = md.render(markdownInput.value);

Loading…
Cancel
Save