From de9422f3177130ea17d679363a72e6fc9b7ae4fa Mon Sep 17 00:00:00 2001 From: "J. Gregg Thomason" Date: Mon, 9 Mar 2015 11:04:59 -0400 Subject: [PATCH] if border is true, set border attrib on table to 1 --- markdown/extensions/tables.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/markdown/extensions/tables.py b/markdown/extensions/tables.py index cbf711ae5..74f790527 100644 --- a/markdown/extensions/tables.py +++ b/markdown/extensions/tables.py @@ -54,6 +54,8 @@ def run(self, parent, blocks): align.append(None) # Build table table = etree.SubElement(parent, 'table') + if border: + table.set('border', '1') thead = etree.SubElement(table, 'thead') self._build_row(header, thead, align, border) tbody = etree.SubElement(table, 'tbody')