diff --git a/CHANGELOG.md b/CHANGELOG.md index 361d921..a8b5b9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ 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-rc2 (19. May, 2023) +## docx-wasm@0.0.278-rc3 (19. May, 2023) - Support `` diff --git a/docx-wasm/js/json/run.ts b/docx-wasm/js/json/run.ts index 5d8837d..f8d2bb0 100644 --- a/docx-wasm/js/json/run.ts +++ b/docx-wasm/js/json/run.ts @@ -1,6 +1,11 @@ import { DrawingJSON } from "./drawing"; import { ShapeJSON } from "./shape"; -import { CommentRangeStartJSON, CommentRangeEndJSON, InsertJSONData, DeleteJSONData } from ".."; +import { + CommentRangeStartJSON, + CommentRangeEndJSON, + InsertJSONData, + DeleteJSONData, +} from ".."; import { BorderType } from "../border"; import { VertAlignType } from "../run"; import { FieldChar } from "./bindings/FieldChar"; @@ -50,6 +55,7 @@ export type RunPropertyJSON = { export type RunChildJSON = | TextJSON + | SymJSON | DeleteTextJSON | TabJSON | BreakJSON @@ -68,6 +74,14 @@ export type TextJSON = { }; }; +export type SymJSON = { + type: "sym"; + data: { + font: string; + char: string; + }; +}; + export type DeleteTextJSON = { type: "deleteText"; data: { @@ -103,14 +117,14 @@ export type FieldCharJSON = { export type InstrTextJSON = { type: "instrText"; data: - | { - type: "hyperlink"; - data: InstrHyperlink; - } - | { - type: "toc"; - data: InstrToC; - }; + | { + type: "hyperlink"; + data: InstrHyperlink; + } + | { + type: "toc"; + data: InstrToC; + }; }; export type InstrTextStringJSON = {