File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 13
13
{{- $id := .Get "id" -}}
14
14
{{- $class := .Get "class" -}}
15
15
{{- $lang := .Get "lang" | default "html" -}}
16
- {{- $stackblitz_add_js := .Get "stackblitz_add_js" | default false -}}
17
16
{{- $show_markup := .Get "show_markup" | default true -}}
18
17
{{- $show_preview := .Get "show_preview" | default true -}}
19
- {{- $input := .Inner -}}
18
+ {{- $stackblitz_add_js := .Get "stackblitz_add_js" | default false -}}
19
+
20
20
{{- $content := .Inner -}}
21
21
22
22
< div class ="bd-example-snippet bd-code-snippet ">
23
- {{- if eq $show_preview true - }}
23
+ {{- if eq $show_preview true }}
24
24
< div {{ with $id }} id ="{{ . }} "{{ end }} class ="bd-example m-0 border-0{{ with $class }} {{ . }}{{ end }} ">
25
- {{- $input - }}
25
+ {{ $content }}
26
26
</ div >
27
- {{- end - }}
27
+ {{- end }}
28
28
29
29
{{- if eq $show_markup true -}}
30
30
{{- if eq $show_preview true -}}
31
31
< div class ="d-flex align-items-center highlight-toolbar ps-3 pe-2 py-1 border-0 border-top border-bottom ">
32
- < small class ="font-monospace text-body-secondary text-uppercase "> {{- $lang - }}</ small >
32
+ < small class ="font-monospace text-body-secondary text-uppercase "> {{ $lang }}</ small >
33
33
< div class ="d-flex ms-auto ">
34
34
< button type ="button " class ="btn-edit text-nowrap "{{ with $stackblitz_add_js }} data-sb-js-snippet ="{{ $stackblitz_add_js }} "{{ end }} title ="Try it on StackBlitz ">
35
35
< svg class ="bi " aria-hidden ="true "> < use xlink:href ="#lightning-charge-fill "/> </ svg >
45
45
{{- $content = replaceRE `< img class ="bd-placeholder-img(?:-lg)?(?: *?bd-placeholder-img-lg)? ?(.*?) ".*? > ` `< img src ="... " class ="$1 " alt ="... "> ` $content -}}
46
46
{{- $content = replaceRE ` (class=" *?")` "" $content -}}
47
47
{{- highlight (trim $content "\n") $lang "" -}}
48
- {{- end - }}
48
+ {{- end }}
49
49
</ div >
You can’t perform that action at this time.
0 commit comments