mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-28 16:52:37 -04:00
Fixed empty lines when copying (9.5.18 regression)
This commit is contained in:
@@ -222,6 +222,11 @@
|
||||
// Copying in progress - this class is set before the content is copied and
|
||||
// removed after copying is done to mitigate whitespace-related issues.
|
||||
code[data-md-copying] {
|
||||
// Hack: since we're using grid layout when line spans are enabled, we need
|
||||
// to set the display property to `initial` to prevent the grid layout from
|
||||
// being applied to the code block when copying, because it will add empty
|
||||
// lines to the copied content - see https://t.ly/wt4ye
|
||||
display: initial;
|
||||
|
||||
// Temporarily remove highlighted lines - see https://bit.ly/32iVGWh
|
||||
.hll {
|
||||
|
||||
Reference in New Issue
Block a user