fix: ignore nested table (#233)
parent
29b1823be3
commit
ef3f2cbb3e
|
@ -17,6 +17,8 @@ impl ElementReader for TableCell {
|
||||||
attributes, name, ..
|
attributes, name, ..
|
||||||
}) => {
|
}) => {
|
||||||
let e = XMLElement::from_str(&name.local_name).unwrap();
|
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 {
|
match e {
|
||||||
XMLElement::Paragraph => {
|
XMLElement::Paragraph => {
|
||||||
let p = Paragraph::read(r, &attributes)?;
|
let p = Paragraph::read(r, &attributes)?;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "docx-wasm",
|
"name": "docx-wasm",
|
||||||
"version": "0.0.139",
|
"version": "0.0.140",
|
||||||
"main": "dist/node/index.js",
|
"main": "dist/node/index.js",
|
||||||
"browser": "dist/web/index.js",
|
"browser": "dist/web/index.js",
|
||||||
"author": "bokuweb <bokuweb12@gmail.com>",
|
"author": "bokuweb <bokuweb12@gmail.com>",
|
||||||
|
|
Loading…
Reference in New Issue