···35 return KindAt
36}
3738-var atRegexp = regexp.MustCompile(`(^|\s|\()(@)([a-zA-Z0-9.-]+)(\b)`)
39var markdownLinkRegexp = regexp.MustCompile(`(?ms)\[.*\]\(.*\)`)
4041type atParser struct{}
···57 return nil
58 }
5960- if !util.IsSpaceRune(block.PrecendingCharacter()) {
61- return nil
62- }
63-64 // Check for all links in the markdown to see if the handle found is inside one
65 linksIndexes := markdownLinkRegexp.FindAllIndex(block.Source(), -1)
66 for _, linkMatch := range linksIndexes {
···35 return KindAt
36}
3738+var atRegexp = regexp.MustCompile(`(^|\s|\()(@)([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\b)`)
39var markdownLinkRegexp = regexp.MustCompile(`(?ms)\[.*\]\(.*\)`)
4041type atParser struct{}
···57 return nil
58 }
59000060 // Check for all links in the markdown to see if the handle found is inside one
61 linksIndexes := markdownLinkRegexp.FindAllIndex(block.Source(), -1)
62 for _, linkMatch := range linksIndexes {