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();
|
||||
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
|
||||
return origRule(tokens, idx, options, env, slf);
|
||||
|
@ -74,8 +74,9 @@ blockquote p {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
pre.language-transclusion{
|
||||
white-space: normal;
|
||||
div.translusion{
|
||||
border-left: 4px solid gray;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
pre[class*="language-ad-"]::before {
|
||||
|
Loading…
x
Reference in New Issue
Block a user