Empty attributes. Fixes #971

This commit is contained in:
Carroll 2016-03-03 10:27:26 +00:00
parent 791c94a0b1
commit ea946f1a0e
3 changed files with 6 additions and 1 deletions

View file

@ -96,7 +96,7 @@
classes.push(match[2])
} else if (match[3][0] === "[") {
var pair = /\[(.+?)(?:=("|'|)(.*?)\2)?\]/.exec(match[3])
cell.attrs[pair[1]] = pair[3] || (pair[2] ? "" : true)
cell.attrs[pair[1]] = pair[3] || (pair[2] ? "" : "")
}
}