bokuweb 2022-10-12 10:03:19 +09:00 committed by GitHub
parent 0be616ddb4
commit 5a9c13dd5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ use serde::Serialize;
use super::*; use super::*;
use crate::documents::BuildXML; use crate::documents::BuildXML;
use crate::xml_builder::*; use crate::{escape::*, xml_builder::*};
#[derive(Debug, Clone, PartialEq, Serialize, Default)] #[derive(Debug, Clone, PartialEq, Serialize, Default)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
@ -38,7 +38,7 @@ impl DocumentRels {
r#type: impl Into<String>, r#type: impl Into<String>,
) -> Self { ) -> Self {
self.hyperlinks self.hyperlinks
.push((id.into(), path.into(), r#type.into())); .push((id.into(), escape(&path.into()), r#type.into()));
self self
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "docx-wasm", "name": "docx-wasm",
"version": "0.0.276-rc23", "version": "0.0.276-rc24",
"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>",