the weird thing is that when i put two or more of these shortcodes in the same content file, the resulting code blockas are all fragmented and broken. i also get ||ZOLA_SC_PLACEHOLDER|| at the bottom of the page - one for each additional {{ code… }.
any ideas? i tried simplifying the .md shortcode but anything i put in there results in a broken output when two or more shortcode calls.
That’s the replacement text the shortcode parser inserts. I’ll add that as a test to figure out what’s happening. Can you paste an entire .md that fails?
another small oddity that is also new in 0.15. (could be that this is a user error.)
if i in the test above change the name of the argument syntax to lang, the syntax highlighter fail with the warning: “Warning: Highlight language en not found in…”
i.e.
{{ code(path = "content/software/supercollider/pakt-februari/pakt29.scd", lang = "supercollider") }}
and the shortcode .md file…
'''{%- if lang -%}{{ lang }}{% endif %}
123
'''
so somehow the lang argument is overwritten with the language of the website “en”.
yep, lang is a reserved parameter of Zola that is passed to every template to identify the current language. You would need to name yours something different.