Copy button for md code blocks (#1902)

Adds a small "copy to clipboard" button in the upper right corner of code blocks in rendered markdown files.
Additionally this removes the trailing lines in such code blocks.

Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: Matthias Thieroff <matthias.thieroff@cloudogu.com>
This commit is contained in:
René Pfeuffer
2022-01-06 13:42:07 +01:00
committed by GitHub
parent a82569fdce
commit 788787db5b
3 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
- type: added
description: Add copy button for markdown code blocks ([#1902](https://github.com/scm-manager/scm-manager/pull/1902))

View File

@@ -151,6 +151,9 @@
"importLog": {
"title": "Importprotokoll"
},
"syntaxHighlighting": {
"copyButton": "In die Zwischenablage kopieren"
},
"notifications": {
"toastTitle": "Benachrichtigung",
"xMore": "+{{ count }} Benachrichtigung",

View File

@@ -152,6 +152,9 @@
"importLog": {
"title": "Import Log"
},
"syntaxHighlighting": {
"copyButton": "Copy to clipboard"
},
"notifications": {
"toastTitle": "Notification",
"xMore": "+{{ count }} Notification",