don't strip text on images

pull/75/head
Harvey Tindall 3 years ago
parent 938523c18b
commit 98d59ba4e0
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

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

Loading…
Cancel
Save