mirror of
https://github.com/hrfee/jfa-go.git
synced 2025-01-07 00:40:11 +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 != ']' {
|
if !foundOpenSquare && !foundOpen && c != '[' && c != ']' {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if c == '[' {
|
if c == '[' && md[i-1] != '!' {
|
||||||
foundOpenSquare = true
|
foundOpenSquare = true
|
||||||
openSquare = i
|
openSquare = i
|
||||||
} else if c == ']' {
|
} else if c == ']' {
|
||||||
|
Loading…
Reference in New Issue
Block a user