mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
Do not break on alignment characters in headers
This commit is contained in:
parent
09026001ba
commit
d89f4345f5
|
@ -66,7 +66,7 @@
|
||||||
hs = line.substring(1, line.length -1).split('|');
|
hs = line.substring(1, line.length -1).split('|');
|
||||||
tbl.push(tables.thead.apply(this, hs));
|
tbl.push(tables.thead.apply(this, hs));
|
||||||
line = lines[++i];
|
line = lines[++i];
|
||||||
if (!line.trim().match(/^[|]{1}[-=| ]+[|]{1}$/)) {
|
if (!line.trim().match(/^[|]{1}[-=|: ]+[|]{1}$/)) {
|
||||||
// not a table rolling back
|
// not a table rolling back
|
||||||
line = lines[--i];
|
line = lines[--i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user