all repos — grayfriday @ c1e49967874c1bf3b4ecb804dee11dd73e50179a

blackfriday fork with a few changes

Add table tags to the whitelist.

Fixing:
https://github.com/russross/blackfriday/commit/55cd82008e9b35b9a03a80e06d5a4c4601320211

This commit introduced a html tag whitelist which does not include any table tags (<td>,<tr>,<thead>...). Therefore even tables the markdown parser itself generated will be removed.
willnix frieder.steinmetz@gmail.com
Thu, 17 Apr 2014 15:44:40 +0000
commit

c1e49967874c1bf3b4ecb804dee11dd73e50179a

parent

9c7cf8b1b7ce43e76f0cf9bc1ebf3fb7430bc5ea

1 files changed, 8 insertions(+), 1 deletions(-)

jump to
M html.gohtml.go

@@ -69,7 +69,14 @@ "sup",

"sub", "strong", "strike", - "ul", + "ul", + "table", + "tr", + "td", + "th", + "thead", + "tbody", + } urlRe = `((https?|ftp):\/\/|\/)[-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]+` tagWhitelist = regexp.MustCompile(`^(<\/?(` + strings.Join(tags, "|") + `)>|<(br|hr)\s?\/?>)$`)