diff --git a/dist/cherry-markdown.css b/dist/cherry-markdown.css index b4bc68da..88aaf461 100644 --- a/dist/cherry-markdown.css +++ b/dist/cherry-markdown.css @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7baad40b6e2a10f7b75a3d4f36d263e9c56fdaf3061f239041d8a4c64858cc53 -size 157706 +oid sha256:bb4ff5868b749a4180f50a3d15965ef4bfbbd4f26f3cc5020608b2efe0083452 +size 157622 diff --git a/dist/cherry-markdown.js b/dist/cherry-markdown.js index 181b0f5e..370455ff 100644 --- a/dist/cherry-markdown.js +++ b/dist/cherry-markdown.js @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f9cc038af57f9ca74c83008bfa8c33c3b59e13cb850454e2d2ffcb3140bbadf3 -size 8166847 +oid sha256:40d9c614d3894d38dd7ae21865cbda6fd0804c3e8aaa5087511937aaef8d602e +size 8406376 diff --git a/dist/cherry-markdown.js.map b/dist/cherry-markdown.js.map index 2c39e579..13749aba 100644 --- a/dist/cherry-markdown.js.map +++ b/dist/cherry-markdown.js.map @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0297b6b164f535ba9117f1f1ad29cc5db34c8ee604ca3588c3634670dab16266 -size 19715127 +oid sha256:bb82590905fa89476d6b30727bcb7b78686bea885cd99fdb73d81ebed06bf581 +size 19707132 diff --git a/src/toolbars/PreviewerBubble.js b/src/toolbars/PreviewerBubble.js index 245b78c2..37556b1f 100644 --- a/src/toolbars/PreviewerBubble.js +++ b/src/toolbars/PreviewerBubble.js @@ -278,7 +278,7 @@ export default class PreviewerBubble { if (target.className === 'cherry-copy-code-block' || target.parentNode?.className === 'cherry-copy-code-block') { const parentNode = target.className === 'cherry-copy-code-block' ? target.parentNode : target.parentNode.parentNode; - const codeContent = parentNode.innerText; + const codeContent = parentNode.lastElementChild.innerText; const final = this.previewer.$cherry.options.callback.onCopyCode(e, codeContent); if (final === false) { return false;