don't strip text on images

This commit is contained in:
Harvey Tindall
2021-02-20 01:20:43 +00:00
parent 938523c18b
commit 98d59ba4e0

View File

@@ -20,7 +20,7 @@ func stripMarkdown(md string) string {
if !foundOpenSquare && !foundOpen && c != '[' && c != ']' {
continue
}
if c == '[' {
if c == '[' && md[i-1] != '!' {
foundOpenSquare = true
openSquare = i
} else if c == ']' {