Skip to content

Commit

Permalink
Merge pull request #10 from curvenote/dg/allow-suffix-for-label
Browse files Browse the repository at this point in the history
allow suffix to be configured for caption label
  • Loading branch information
rowanc1 committed Jan 21, 2022
2 parents a0f02dc + 04a82c9 commit d25bbca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/serializer.ts
Expand Up @@ -313,8 +313,8 @@ export class DocxSerializerState<S extends Schema = any> {
this.children = actualChildren;
}

captionLabel(id: string, kind: 'Figure' | 'Table') {
this.current.push(...[createReferenceBookmark(id, kind, `${kind} `), new TextRun(': ')]);
captionLabel(id: string, kind: 'Figure' | 'Table', { suffix } = { suffix: ': ' }) {
this.current.push(...[createReferenceBookmark(id, kind, `${kind} `), new TextRun(suffix)]);
}

$footnoteCounter = 0;
Expand Down

0 comments on commit d25bbca

Please sign in to comment.