diff --git a/manifest.json b/manifest.json index 12464d8..2d6bb8e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-admonition", "name": "Admonition", - "version": "4.1.2", + "version": "4.1.3", "minAppVersion": "0.11.0", "description": "Admonition block-styled content for Obsidian.md", "author": "Jeremy Valentine", diff --git a/package.json b/package.json index e51a7aa..6d19686 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-admonition", - "version": "4.1.2", + "version": "4.1.3", "description": "Admonition block-styled content for Obsidian.md", "main": "main.js", "scripts": { diff --git a/src/main.css b/src/main.css index 6e693e5..7ec209d 100644 --- a/src/main.css +++ b/src/main.css @@ -82,8 +82,8 @@ details.admonition > summary { cursor: pointer; } -details.admonition > summary::-webkit-details-marker { - display: none; +details.admonition > summary { + list-style-type: none; } details.admonition > summary > .collapser { diff --git a/src/main.ts b/src/main.ts index ecb8d61..7656a7d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -349,9 +349,13 @@ export default class ObsidianAdmonition ).node[0] ); copy.addEventListener("click", () => { - navigator.clipboard.writeText(content).then(() => { - new Notice("Admonition content copied to clipboard."); - }); + navigator.clipboard + .writeText(content.trim()) + .then(async () => { + new Notice( + "Admonition content copied to clipboard." + ); + }); }); } diff --git a/versions.json b/versions.json index 727725d..e9e4d45 100644 --- a/versions.json +++ b/versions.json @@ -6,5 +6,5 @@ "3.2.2": "0.11.0", "3.3.4": "0.11.0", "4.0.1": "0.11.0", - "4.1.2": "0.11.0" + "4.1.3": "0.11.0" } \ No newline at end of file