fix valueless attributes #1093

This commit is contained in:
Leo Horie 2016-06-06 09:21:58 -04:00
parent 2289061f90
commit 3cf16631a0
2 changed files with 2 additions and 5 deletions

View file

@ -97,7 +97,7 @@
} else if (match[3][0] === "[") {
var attrValue = match[6]
if (attrValue) attrValue = attrValue.replace(/\\(["'])/g, "$1")
cell.attrs[match[4]] = attrValue || ""
cell.attrs[match[4]] = attrValue || true
}
}