diff --git a/layouts/shortcodes/paige/code.html b/layouts/shortcodes/paige/code.html index 08f6d546..e7b95334 100644 --- a/layouts/shortcodes/paige/code.html +++ b/layouts/shortcodes/paige/code.html @@ -1,8 +1,12 @@ {{ $align := .Get "align" }} {{ $caption := .Get "caption" }} {{ $float := .Get "float" }} +{{ $height := .Get "height" }} {{ $lang := .Get 0 | default (.Get "lang") | default "plaintext" }} +{{ $maxheight := .Get "maxheight" }} +{{ $maxwidth := .Get "maxwidth" }} {{ $options := .Get "options" }} +{{ $width := .Get "width" }} {{ $content := highlight (.Inner | replaceRE "^\n" "") $lang $options }} @@ -11,4 +15,8 @@ "caption" $caption "content" $content "float" $float + "height" $height + "maxheight" $maxheight + "maxwidth" $maxwidth + "width" $width ) }}