add copy button to code blocks

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-04-21 14:05:59 +02:00
parent c6f47db8ba
commit cdcf69db60
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
5 changed files with 122 additions and 17 deletions

View file

@ -12,6 +12,8 @@
html.elem("theme-picker", attrs: (aria-label: label, role: "radiogroup"), body)
}
#let code-block = html.elem.with("code-block")
#let code-block-button-container = html.elem.with("code-block-button-container")
#let icon-container(..args, body) = {
html.elem("icon-container", attrs: args.named(), body)
}