Skip to content

Commit

Permalink
Update youtube.html
Browse files Browse the repository at this point in the history
youtube shortcode codestyled as tab 2 when inside another markdownfy ( {{%%}} )shortcode.
  • Loading branch information
imdongye committed May 30, 2024
1 parent 2c88e45 commit 5cabee5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tpl/tplimpl/embedded/templates/shortcodes/youtube.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@
}}

{{- /* Render. */}}
<div {{ $divClassOrStyle | safeHTMLAttr }}>
<iframe
{{- range $k, $v := $iframeAttributes }}
{{- if $v }}
{{- printf " %s=%q" $k $v | safeHTMLAttr }}
{{- end }}
{{- end }}
></iframe>
</div>
<div {{ $divClassOrStyle | safeHTMLAttr }}>
<iframe
{{- range $k, $v := $iframeAttributes }}
{{- if $v }}
{{- printf " %s=%q" $k $v | safeHTMLAttr }}
{{- end }}
{{- end }}
></iframe>
</div>
{{- else }}
{{- errorf "The %q shortcode requires an id argument. See %s" .Name .Position }}
{{- end }}
Expand Down

0 comments on commit 5cabee5

Please sign in to comment.