yuin / goldmark

:trophy: A markdown parser written in Go. Easy to extend, standard(CommonMark) compliant, well structured.
MIT License
3.68k stars 255 forks source link

Minor error in htmlBlockType7Regexp #228

Closed maxb closed 3 years ago

maxb commented 3 years ago

In https://github.com/yuin/goldmark/blob/master/parser/html_block.go:

var htmlBlockType7Regexp = regexp.MustCompile(`^[ ]{0,3}<(/)?([a-zA-Z0-9\-]+)(` + attributePattern + `*)(:?>|/>)\s*\n?$`)

Near the end, (:?>|/>) looks like a typo for (?:>|/>) (which could be more simply expressed as /?>)

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

maxb commented 3 years ago

Not stale, still needs fixing