fix: ignore nested table (#233)

main
bokuweb 2021-03-01 17:18:42 +09:00 committed by GitHub
parent 29b1823be3
commit ef3f2cbb3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,8 @@ impl ElementReader for TableCell {
attributes, name, ..
}) => {
let e = XMLElement::from_str(&name.local_name).unwrap();
// FIXME: ignore table in table for now. Please support table in table later.
ignore::ignore_element(e.clone(), XMLElement::Table, r);
match e {
XMLElement::Paragraph => {
let p = Paragraph::read(r, &attributes)?;

View File

@ -1,6 +1,6 @@
{
"name": "docx-wasm",
"version": "0.0.139",
"version": "0.0.140",
"main": "dist/node/index.js",
"browser": "dist/web/index.js",
"author": "bokuweb <bokuweb12@gmail.com>",