Do not break on alignment characters in headers

This commit is contained in:
Alessandro Vermeulen 2015-01-07 13:33:22 +01:00
parent 09026001ba
commit d89f4345f5

View File

@ -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];
}