mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
don't strip text on images
This commit is contained in:
@@ -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 == ']' {
|
||||
|
||||
Reference in New Issue
Block a user