diff --git a/nodsoft_moltenobsidian_web/src/styles/_content.scss b/nodsoft_moltenobsidian_web/src/styles/_content.scss index 6f678ce..634548b 100644 --- a/nodsoft_moltenobsidian_web/src/styles/_content.scss +++ b/nodsoft_moltenobsidian_web/src/styles/_content.scss @@ -82,6 +82,6 @@ table, .table { @include callout-color("info", rgb(0, 122, 255)); } -@include code-block-syntax("csharp") { +@include code-block-syntax("csharp", "cs") { @import "syntax/csharp"; } \ No newline at end of file diff --git a/nodsoft_moltenobsidian_web/src/styles/_mixins.scss b/nodsoft_moltenobsidian_web/src/styles/_mixins.scss index 7bd3c43..898b4e9 100644 --- a/nodsoft_moltenobsidian_web/src/styles/_mixins.scss +++ b/nodsoft_moltenobsidian_web/src/styles/_mixins.scss @@ -17,8 +17,10 @@ font-size: 90%; } -@mixin code-block-syntax($lang) { -.lang-#{$lang} .#{$lang} pre { - @content; +@mixin code-block-syntax($langs) { + @each $lang in $langs { + .lang-#{$lang} .#{$lang} pre { + @content; + } } } \ No newline at end of file