Properly render admonitions

This commit is contained in:
Ole Eskild Steensen 2022-02-23 16:12:56 +01:00
parent e34e879127
commit 0a69c2ee81

View File

@ -18,6 +18,10 @@ module.exports = function(eleventyConfig) {
const code = token.content.trim();
return `<div class="transclusion">${md.render(code)}</div>`;
}
if (token.info.startsWith("ad-")) {
const code = token.content.trim();
return `<pre class="language-${token.info}">${md.render(code)}</pre>`;
}
// Other languages
return origRule(tokens, idx, options, env, slf);