Add ability to add multiple text runs to a bookmark

This commit is contained in:
Dolan
2020-01-01 22:54:42 +00:00
parent 9c11653313
commit db7c4da609
7 changed files with 44 additions and 13 deletions

View File

@ -150,7 +150,9 @@ export class Paragraph extends XmlComponent {
for (const child of options.children) {
if (child instanceof Bookmark) {
this.root.push(child.start);
this.root.push(child.text);
for (const textRun of child.children) {
this.root.push(textRun);
}
this.root.push(child.end);
continue;
}