From 4a49786b164b5122caf829604df7ee2ab29cea67 Mon Sep 17 00:00:00 2001 From: yuin Date: Thu, 4 Jun 2020 14:38:30 +0900 Subject: [PATCH] Fixes #136 --- parser/html_block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/html_block.go b/parser/html_block.go index 95b6918..845c00f 100644 --- a/parser/html_block.go +++ b/parser/html_block.go @@ -93,7 +93,7 @@ var htmlBlockType5Close = []byte{']', ']', '>'} var htmlBlockType6Regexp = regexp.MustCompile(`^[ ]{0,3}.*|/>.*|)\n?$`) -var htmlBlockType7Regexp = regexp.MustCompile(`^[ ]{0,3}<(/)?([a-zA-Z0-9]+)(` + attributePattern + `*)(:?>|/>)\s*\n?$`) +var htmlBlockType7Regexp = regexp.MustCompile(`^[ ]{0,3}<(/)?([a-zA-Z0-9\-]+)(` + attributePattern + `*)(:?>|/>)\s*\n?$`) type htmlBlockParser struct { }