Skip to content

Commit b744e6d

Browse files
committed
4.1.3
- Whitespace is trimmed from content when copied to clipboard - Updated CSS selector to remove deprecated `::-webkit-details-marker`
1 parent 3e32b14 commit b744e6d

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "obsidian-admonition",
33
"name": "Admonition",
4-
"version": "4.1.2",
4+
"version": "4.1.3",
55
"minAppVersion": "0.11.0",
66
"description": "Admonition block-styled content for Obsidian.md",
77
"author": "Jeremy Valentine",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-admonition",
3-
"version": "4.1.2",
3+
"version": "4.1.3",
44
"description": "Admonition block-styled content for Obsidian.md",
55
"main": "main.js",
66
"scripts": {

src/main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ details.admonition > summary {
8282
cursor: pointer;
8383
}
8484

85-
details.admonition > summary::-webkit-details-marker {
86-
display: none;
85+
details.admonition > summary {
86+
list-style-type: none;
8787
}
8888

8989
details.admonition > summary > .collapser {

src/main.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,13 @@ export default class ObsidianAdmonition
349349
).node[0]
350350
);
351351
copy.addEventListener("click", () => {
352-
navigator.clipboard.writeText(content).then(() => {
353-
new Notice("Admonition content copied to clipboard.");
354-
});
352+
navigator.clipboard
353+
.writeText(content.trim())
354+
.then(async () => {
355+
new Notice(
356+
"Admonition content copied to clipboard."
357+
);
358+
});
355359
});
356360
}
357361

versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"3.2.2": "0.11.0",
77
"3.3.4": "0.11.0",
88
"4.0.1": "0.11.0",
9-
"4.1.2": "0.11.0"
9+
"4.1.3": "0.11.0"
1010
}

0 commit comments

Comments
 (0)