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
1 files changed,
8 insertions(+),
1 deletions(-)
jump to
M
html.go
→
html.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?\/?>)$`)