add arabic handler

master
Tait Hoyem 2 years ago
parent 75d627626f
commit 1f73ef4f25

@ -72,8 +72,10 @@ const renderHTML = async () => {
html: true,
});
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 newHtml = md.render(markdownInput.value);
const newHtml = md.render(mkInputAr2);
htmlOutput.innerHTML = newHtml;
updateRender();
saveMd();

Binary file not shown.
Loading…
Cancel
Save