Feat/manual #313

Merged
j.kropff merged 3 commits from feat/manual into main 2026-04-26 22:45:06 +02:00
Showing only changes of commit ac9396cfb2 - Show all commits
@@ -23,8 +23,9 @@ const marked = {
`;
});
md = md.replace(/```([\s\S]*?)```/g, (_, code) => {
return `<pre class="cm-code"><code>${escapeHtml(code)}</code></pre>`;
md = md.replace(/```(\w*)\n?([\s\S]*?)```/g, (_, lang, code) => {
const langClass = lang ? ` language-${lang}` : "";
return `<pre class="cm-code${langClass}"><code>${escapeHtml(code.trim())}</code></pre>`;
});
md = md.replace(/!\[(.*?)\]\((.*?)\)/gim,