mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Issue #5 : Fixed 'index out of range' error when FilterTags exists
This commit is contained in:
parent
31fd0f6b4c
commit
4ff89123a4
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ func (s *rawHTMLParser) parseMultiLineRegexp(reg *regexp.Regexp, block text.Read
|
||||||
}
|
}
|
||||||
|
|
||||||
if m != nil {
|
if m != nil {
|
||||||
if s.FilterTags != nil {
|
if s.FilterTags != nil && len(m) > 1 {
|
||||||
tagName := string(m[1])
|
tagName := string(m[1])
|
||||||
if _, ok := s.FilterTags[tagName]; ok {
|
if _, ok := s.FilterTags[tagName]; ok {
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue