Skip to content

Commit

Permalink
example: remove unneeded escape characters
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Jan 20, 2021
1 parent a91cf1d commit 699f5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/layouts/shortcodes/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{{- end -}}

{{- if eq $show_markup true -}}
{{- $content := replaceRE `<svg class="bd\-placeholder\-img(?:\-lg)?(?: *?bd\-placeholder\-img\-lg)? ?(.*?)".*?<\/svg>\n` `<img src="..." class="$1" alt="...">` $input -}}
{{- $content := replaceRE `<svg class="bd-placeholder-img(?:-lg)?(?: *?bd-placeholder-img-lg)? ?(.*?)".*?<\/svg>\n` `<img src="..." class="$1" alt="...">` $input -}}
{{- $content = replaceRE ` (class=" *?")` "" $content -}}
{{- highlight (trim $content "\n") $lang "" -}}
{{- end -}}

0 comments on commit 699f5d8

Please sign in to comment.