mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-12 01:26:55 +01:00
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:
3
gradle/changelog/copy_button.yaml
Normal file
3
gradle/changelog/copy_button.yaml
Normal 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))
|
||||||
|
|
||||||
@@ -151,6 +151,9 @@
|
|||||||
"importLog": {
|
"importLog": {
|
||||||
"title": "Importprotokoll"
|
"title": "Importprotokoll"
|
||||||
},
|
},
|
||||||
|
"syntaxHighlighting": {
|
||||||
|
"copyButton": "In die Zwischenablage kopieren"
|
||||||
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"toastTitle": "Benachrichtigung",
|
"toastTitle": "Benachrichtigung",
|
||||||
"xMore": "+{{ count }} Benachrichtigung",
|
"xMore": "+{{ count }} Benachrichtigung",
|
||||||
|
|||||||
@@ -152,6 +152,9 @@
|
|||||||
"importLog": {
|
"importLog": {
|
||||||
"title": "Import Log"
|
"title": "Import Log"
|
||||||
},
|
},
|
||||||
|
"syntaxHighlighting": {
|
||||||
|
"copyButton": "Copy to clipboard"
|
||||||
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"toastTitle": "Notification",
|
"toastTitle": "Notification",
|
||||||
"xMore": "+{{ count }} Notification",
|
"xMore": "+{{ count }} Notification",
|
||||||
|
|||||||
Reference in New Issue
Block a user