We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 685cb30 commit 6e181ffCopy full SHA for 6e181ff
layouts/_default/_markup/render-codeblock.html
@@ -4,7 +4,7 @@
4
{{ end }}
5
<div class="group relative">
6
<button x-data="{ code: '{{encoding.Base64Encode .Inner}}', copying: false }"
7
- class="absolute right-3 top-3 z-20 text-gray-light-300 dark:text-gray-dark-600" title="Copy" @click="window.navigator.clipboard.writeText(atob(code).replaceAll(/^\$\s*/gm, ''));
+ class="absolute right-3 top-3 z-20 text-gray-light-300 dark:text-gray-dark-600" title="copy" @click="window.navigator.clipboard.writetext(atob(code).replaceall(/^[\$>]\s+/gm, ''));
8
copying = true;
9
setTimeout(() => copying = false, 2000);">
10
<span :class="{ 'group-hover:block' : !copying }" class="icon-svg hidden">{{ partialCached "icon" "content_copy" "content_copy" }}</span>
0 commit comments