mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-06 20:55:21 +00:00
Style and render transclusions properly
This commit is contained in:
parent
941518d65f
commit
e34e879127
@ -14,6 +14,10 @@ module.exports = function(eleventyConfig) {
|
|||||||
const code = token.content.trim();
|
const code = token.content.trim();
|
||||||
return `<pre class="mermaid">${code}</pre>`;
|
return `<pre class="mermaid">${code}</pre>`;
|
||||||
}
|
}
|
||||||
|
if (token.info === 'transclusion') {
|
||||||
|
const code = token.content.trim();
|
||||||
|
return `<div class="transclusion">${md.render(code)}</div>`;
|
||||||
|
}
|
||||||
|
|
||||||
// Other languages
|
// Other languages
|
||||||
return origRule(tokens, idx, options, env, slf);
|
return origRule(tokens, idx, options, env, slf);
|
||||||
|
@ -74,8 +74,9 @@ blockquote p {
|
|||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre.language-transclusion{
|
div.translusion{
|
||||||
white-space: normal;
|
border-left: 4px solid gray;
|
||||||
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre[class*="language-ad-"]::before {
|
pre[class*="language-ad-"]::before {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user