Skip to content

Commit

Permalink
Fixes #81
Browse files Browse the repository at this point in the history
  • Loading branch information
yuin committed Dec 27, 2019
1 parent 2c9db0c commit f9b134f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/html_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var allowedBlockTags = map[string]bool{
}

var htmlBlockType1OpenRegexp = regexp.MustCompile(`(?i)^[ ]{0,3}<(script|pre|style)(?:\s.*|>.*|/>.*|)\n?$`)
var htmlBlockType1CloseRegexp = regexp.MustCompile(`(?i)^[ ]{0,3}(?:[^ ].*|)</(?:script|pre|style)>.*`)
var htmlBlockType1CloseRegexp = regexp.MustCompile(`(?i)^.*</(?:script|pre|style)>.*`)

var htmlBlockType2OpenRegexp = regexp.MustCompile(`^[ ]{0,3}<!\-\-`)
var htmlBlockType2Close = []byte{'-', '-', '>'}
Expand Down

0 comments on commit f9b134f

Please sign in to comment.