<div class="fancycode code"> <div class="controls"> <div class="circle red"></div> <div class="circle yellow"></div> <div class="circle green"></div> </div> <div class="content"> {{ body | markdown | safe }} </div> </div>
{% code() %} ```css .fancycode.mini .controls { display: none; } .fancycode:not(.mini) .content { padding-top: 2rem; } ``` {% end %}
The difference is because the markdown filter doesn’t get the theme from the config. There is https://github.com/getzola/zola/issues/943 to track that and I’ll happily take a PR for it