mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed empty lines when copying (9.5.18 regression)
This commit is contained in:
parent
bd708f16bc
commit
937d7ccff1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -44,7 +44,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.66ac8b77.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.732c4fb1.min.css' | url }}">
|
||||
{% if config.theme.palette %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user