Skip to content

Commit

Permalink
Fix globally imported CLIPBOARD_OPTIONS (#529) (#537)
Browse files Browse the repository at this point in the history
Co-authored-by: Ondrej Kovac <ondrej.kovac@bisimulations.com>
  • Loading branch information
klofi and Ondrej Kovac authored Sep 30, 2024
1 parent b2a4a44 commit 215e3b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/markdown.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ export class MarkdownComponent implements OnChanges, AfterViewInit, OnDestroy {
const renderOptions: RenderOptions = {
clipboard: this.clipboard,
clipboardOptions: {
buttonComponent: this.clipboardButtonComponent,
buttonTemplate: this.clipboardButtonTemplate,
...(this.clipboardButtonComponent && { buttonComponent: this.clipboardButtonComponent }),
...(this.clipboardButtonTemplate && { buttonTemplate: this.clipboardButtonTemplate }),
},
katex: this.katex,
katexOptions: this.katexOptions,
Expand Down

0 comments on commit 215e3b7

Please # to comment.