Allow for ' in image alt tag
This commit is contained in:
		| @@ -10,7 +10,7 @@ | ||||
|     {{- end }} | ||||
|     <img src="{{ .Get "src" | relURL }}" | ||||
|          {{- if or (.Get "alt") (.Get "caption") }} | ||||
|          alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}" | ||||
|          alt="{{ with .Get "alt" }}{{ replace . "'" "'" }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}" | ||||
|          {{- end -}} | ||||
|     /> <!-- Closing img tag --> | ||||
|     {{- if .Get "link" }}</a>{{ end -}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user