mirror of
https://github.com/hrfee/jfa-go.git
synced 2025-01-04 23:40:10 +00:00
don't strip text on images
This commit is contained in:
parent
938523c18b
commit
98d59ba4e0
@ -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…
Reference in New Issue
Block a user