This commit is contained in:
Michael Myers
2018-07-24 16:56:27 -04:00
parent cc904ee211
commit 985ea30d36
4 changed files with 62 additions and 3 deletions

View File

@ -160,6 +160,8 @@ export class File {
public createInternalHyperLink(anchor: string, text?: string): Hyperlink {
text = text === undefined ? anchor : text;
const hyperlink = new Hyperlink(text, this.docRelationships.RelationshipCount, anchor);
// NOTE: unlike File#createHyperlink(), since the link is to an internal bookmark
// we don't need to create a new relationship.
return hyperlink;
}