fix: added unique numeric id creator to avoid numbering render errors

This commit is contained in:
Lentyaev Pavel
2023-04-18 15:15:38 +03:00
parent accb1d44d0
commit c59c5350fd
4 changed files with 18 additions and 9 deletions

View File

@ -1,10 +1,12 @@
// http://officeopenxml.com/WPbookmark.php
import { XmlComponent } from "@file/xml-components";
import { uniqueNumericId } from "@util/convenience-functions";
import { uniqueNumericIdCreator } from "@util/convenience-functions";
import { ParagraphChild } from "../paragraph";
import { BookmarkEndAttributes, BookmarkStartAttributes } from "./bookmark-attributes";
const uniqueNumericId = uniqueNumericIdCreator();
export class Bookmark {
public readonly start: BookmarkStart;
public readonly children: readonly ParagraphChild[];