mirror of https://github.com/docker/docs.git
Merge pull request #18002 from dvdksn/copy-multiline-commands
js: fix copy function for multiline code blocks
This commit is contained in:
commit
63a280ec67
|
@ -1,6 +1,6 @@
|
|||
<div class="group relative">
|
||||
<button
|
||||
x-data="{ code: '{{ strings.ReplaceRE `(?sm)\s*^\$\s+` `` .Inner | base64Encode }}' }"
|
||||
x-data="{ code: '{{ strings.ReplaceRE `(?sm)^\$\s+` "" .Inner | base64Encode }}' }"
|
||||
class="material-symbols-rounded hidden group-hover:block absolute top-3 right-3 text-gray-light-300 dark:text-gray-dark-600"
|
||||
title="Copy"
|
||||
@click="window.navigator.clipboard.writeText(atob(code));
|
||||
|
|
Loading…
Reference in New Issue