diff --git a/src/file/paragraph/links/hyperlink.ts b/src/file/paragraph/links/hyperlink.ts index 23f7b10219..a3e6697bd6 100644 --- a/src/file/paragraph/links/hyperlink.ts +++ b/src/file/paragraph/links/hyperlink.ts @@ -38,6 +38,8 @@ export class InternalHyperlink extends ConcreteHyperlink { } } -export class ExternalHyperlink { - constructor(public readonly options: { readonly children: ParagraphChild[]; readonly link: string }) {} +export class ExternalHyperlink extends XmlComponent { + constructor(public readonly options: { readonly children: ParagraphChild[]; readonly link: string }) { + super("w:externalHyperlink"); + } }