Skip to content

Commit

Permalink
feat: Callouts now receive the "copy content" button if turned on in …
Browse files Browse the repository at this point in the history
…Admonition settings
  • Loading branch information
valentine195 committed Mar 31, 2022
1 parent 1ba0085 commit 266efde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ Set the default collapse type used when setting an admonition collapsible by def

### Add Copy Button

A "Copy Content" button will be added to the top-right corner of the admonition content.
A "Copy Content" button will be added to the top-right corner of the admonition & callout content.

### Parse Titles as Markdown

Expand Down
6 changes: 2 additions & 4 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export default class AdmonitionSetting extends PluginSettingTab {
}
new Setting(containerEl)
.setName(t("Add Copy Button"))
.setDesc(t("Add a 'copy content' button to admonitions."))
.setDesc("Add a 'copy content' button to admonitions & callouts.")
.addToggle((t) => {
t.setValue(this.plugin.data.copyButton);
t.onChange(async (v) => {
Expand Down Expand Up @@ -1002,9 +1002,7 @@ class SettingsModal extends Modal {
.setDesc(
createFragment((e) => {
e.createSpan({
text: t(
"A copy button will be added to the admonition."
)
text: "A copy button will be added to the admonition & callout."
});
})
)
Expand Down

0 comments on commit 266efde

Please sign in to comment.