From 0f65b004364b0bb320c5da4f81d2edd5fba939f4 Mon Sep 17 00:00:00 2001 From: bokuweb Date: Tue, 11 Mar 2025 13:02:55 +0900 Subject: [PATCH] feat: Support dstrike reader --- docx-core/src/reader/run_property.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docx-core/src/reader/run_property.rs b/docx-core/src/reader/run_property.rs index 9ae5a0e..09d5449 100644 --- a/docx-core/src/reader/run_property.rs +++ b/docx-core/src/reader/run_property.rs @@ -92,6 +92,13 @@ impl ElementReader for RunProperty { } rp = rp.strike(); } + XMLElement::Dstrike => { + if !read_bool(&attributes) { + rp.dstrike = Some(Dstrike::new().disable()); + continue; + } + rp = rp.dstrike(); + } XMLElement::VertAlign => { if let Ok(v) = VertAlignType::from_str(&attributes[0].value) { rp = rp.vert_align(v)