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 Mar 10, 2021
1 parent 999b4e0 commit 8eda832
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 8eda832

Please sign in to comment.