try to ignore images for now
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7fbd1ce6f8
commit
8a261a6ca1
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ func (fileContent *FileContent) FormatContent() string {
|
|||
|
||||
var buffer []byte
|
||||
data := []byte(content)
|
||||
re := regexp.MustCompile(`!?\[([^\]*]*)\]\(([^ ]*)\)`)
|
||||
re := regexp.MustCompile(`(?<!!)\[([^\]*]*)\]\(([^ ]*)\)`)
|
||||
//re := regexp.MustCompile(`!\[([^\]*]*)\]\(([^ ]*)\)`) -- image
|
||||
|
||||
for i, match := range re.FindAllSubmatch(data, -1) {
|
||||
replaceWithIndex := append(match[1], fmt.Sprintf("[%d]", i+1)...)
|
||||
|
|
Loading…
Reference in a new issue