parent
fcd6d40dd0
commit
56e46bf77c
|
@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## docx-wasm@0.0.278-rc0 (27. Mar, 2023)
|
||||
|
||||
- Fixed a bug, escape style name.
|
||||
|
||||
## docx-wasm@0.0.277-rc1 (20. Dec, 2022)
|
||||
|
||||
- Support `link` in style.
|
||||
|
|
|
@ -3,7 +3,7 @@ use serde::{Serialize, Serializer};
|
|||
use std::str::FromStr;
|
||||
|
||||
use crate::documents::BuildXML;
|
||||
use crate::xml_builder::*;
|
||||
use crate::{escape, xml_builder::*};
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct Name {
|
||||
|
@ -12,7 +12,9 @@ pub struct Name {
|
|||
|
||||
impl Name {
|
||||
pub fn new(name: impl Into<String>) -> Name {
|
||||
Name { name: name.into() }
|
||||
Name {
|
||||
name: escape::escape(&name.into()),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn starts_with(&self, s: &str) -> bool {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "docx-wasm",
|
||||
"version": "0.0.277-sdt5",
|
||||
"version": "0.0.278-rc0",
|
||||
"main": "dist/node/index.js",
|
||||
"browser": "dist/web/index.js",
|
||||
"author": "bokuweb <bokuweb12@gmail.com>",
|
||||
|
|
|
@ -85755,7 +85755,7 @@ Object {
|
|||
},
|
||||
Object {
|
||||
"basedOn": null,
|
||||
"name": "F_BOLD&ALLCAPITAL",
|
||||
"name": "F_BOLD&ALLCAPITAL",
|
||||
"next": null,
|
||||
"paragraphProperty": Object {
|
||||
"runProperty": Object {},
|
||||
|
|
Loading…
Reference in New Issue