I found myself upgrading to Hugo 55.2 and suddenly a shortcode I had seems broken… this is the shortcode call;
{{% import file="/static/python/example.py" language="python" %}}
calling this shortcode
{{ $file := .Get "file" | readFile }}
{{ $lang := .Get "language" }}
{{ if eq $lang "md" }}
{{ (print $file) | markdownify }}
{{ else }}
{{ (print "```" $lang "\n" $file "\n```") | markdownify }}
{{ end }}
But the rendering of the page is all a mess… (http://localhost:1313/docs/collaborating/authoring/screen-recording/) any ideas?
thanks
jb