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
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
1 changed files with 1 additions and 1 deletions

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 == ']' {