You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
629 B
HTML
24 lines
629 B
HTML
{{ $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 }}
|
|
|
|
{{ partial "paige/figure.html" (dict
|
|
"align" $align
|
|
"caption" $caption
|
|
"content" $content
|
|
"float" $float
|
|
"gap" 2
|
|
"height" $height
|
|
"maxheight" $maxheight
|
|
"maxwidth" $maxwidth
|
|
"width" $width
|
|
) }}
|