|
|
@ -72,8 +72,10 @@ const renderHTML = async () => {
|
|
|
|
html: true,
|
|
|
|
html: true,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const markdownInput = document.getElementById("markdown-input");
|
|
|
|
const markdownInput = document.getElementById("markdown-input");
|
|
|
|
|
|
|
|
const mkInputAr = markdownInput.value.replaceAll("ARS", "<span lang=\"ar\" dir=\"rtl\">")
|
|
|
|
|
|
|
|
const mkInputAr2 = mkInputAr.replaceAll("ARE", "</span>");
|
|
|
|
const htmlOutput = document.getElementById("html-output");
|
|
|
|
const htmlOutput = document.getElementById("html-output");
|
|
|
|
const newHtml = md.render(markdownInput.value);
|
|
|
|
const newHtml = md.render(mkInputAr2);
|
|
|
|
htmlOutput.innerHTML = newHtml;
|
|
|
|
htmlOutput.innerHTML = newHtml;
|
|
|
|
updateRender();
|
|
|
|
updateRender();
|
|
|
|
saveMd();
|
|
|
|
saveMd();
|
|
|
|