Skip to content

Commit

Permalink
fix: regex of markdownify.html
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Jan 16, 2020
1 parent ca47e40 commit 853db3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/components/markdownify.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<!-- https://github.com/reuixiy/hugo-theme-meme/issues/49 -->
{{- $Content := $Deliver.Scratch.Get "Content" -}}
{{- if and (not (strings.HasPrefix $Content "<p>")) $isContent -}}
{{- if and (not (strings.HasPrefix $Content "<")) $isContent -}}
{{- $Content := (printf `<p>%s</p>` $Content) | safeHTML -}}
{{- $Deliver.Scratch.Set "Content" $Content -}}
{{- end -}}
Expand Down

0 comments on commit 853db3d

Please sign in to comment.