Skip to content

Commit 266efde

Browse files
committed
feat: Callouts now receive the "copy content" button if turned on in Admonition settings
1 parent 1ba0085 commit 266efde

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ Set the default collapse type used when setting an admonition collapsible by def
482482

483483
### Add Copy Button
484484

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

487487
### Parse Titles as Markdown
488488

src/settings.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export default class AdmonitionSetting extends PluginSettingTab {
252252
}
253253
new Setting(containerEl)
254254
.setName(t("Add Copy Button"))
255-
.setDesc(t("Add a 'copy content' button to admonitions."))
255+
.setDesc("Add a 'copy content' button to admonitions & callouts.")
256256
.addToggle((t) => {
257257
t.setValue(this.plugin.data.copyButton);
258258
t.onChange(async (v) => {
@@ -1002,9 +1002,7 @@ class SettingsModal extends Modal {
10021002
.setDesc(
10031003
createFragment((e) => {
10041004
e.createSpan({
1005-
text: t(
1006-
"A copy button will be added to the admonition."
1007-
)
1005+
text: "A copy button will be added to the admonition & callout."
10081006
});
10091007
})
10101008
)

0 commit comments

Comments
 (0)