From d89f4345f5301d7a30fb4cbd4ccd397eb81055da Mon Sep 17 00:00:00 2001 From: Alessandro Vermeulen Date: Wed, 7 Jan 2015 13:33:22 +0100 Subject: [PATCH] Do not break on alignment characters in headers --- src/extensions/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/table.js b/src/extensions/table.js index faa9659..f8dbb97 100644 --- a/src/extensions/table.js +++ b/src/extensions/table.js @@ -66,7 +66,7 @@ hs = line.substring(1, line.length -1).split('|'); tbl.push(tables.thead.apply(this, hs)); line = lines[++i]; - if (!line.trim().match(/^[|]{1}[-=| ]+[|]{1}$/)) { + if (!line.trim().match(/^[|]{1}[-=|: ]+[|]{1}$/)) { // not a table rolling back line = lines[--i]; }