mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-07 05:05:20 +00:00
Properly render admonitions
This commit is contained in:
parent
e34e879127
commit
0a69c2ee81
@ -18,6 +18,10 @@ module.exports = function(eleventyConfig) {
|
|||||||
const code = token.content.trim();
|
const code = token.content.trim();
|
||||||
return `<div class="transclusion">${md.render(code)}</div>`;
|
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
|
// Other languages
|
||||||
return origRule(tokens, idx, options, env, slf);
|
return origRule(tokens, idx, options, env, slf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user