From 5f1cde27072a57d55ade850f8e8a678d6568e4b4 Mon Sep 17 00:00:00 2001 From: Varya Stepanova Date: Fri, 30 Oct 2015 14:32:40 +0200 Subject: [PATCH] Fix #783. Process table tags in markdown --- lib/modules/markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/markdown.js b/lib/modules/markdown.js index 51fe3965..a501c2b5 100644 --- a/lib/modules/markdown.js +++ b/lib/modules/markdown.js @@ -50,7 +50,7 @@ module.exports = { processHtml: function(html) { var $ = cheerio.load(html); - $('p, a, li, pre, h1, h2, h3, h4, h5, h6').not('[sg-no-style]').addClass('sg'); + $('p, a, li, pre, h1, h2, h3, h4, h5, h6, table, thead, tbody, tr, th, td').not('[sg-no-style]').addClass('sg'); excludeLinks.forEach(function(link) { $('a[href^="' + link + '"]').remove(); });