-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
Description
Discussed in #3359
Originally posted by andrewetchen December 17, 2021
Hi everyone,
Using the copy-to-clipboard on code blocks with highlighted lines, extra lines are being added when pasted.
Using the highlighting specific lines Result as an example. The copy-to-clipboard produces extra lines when pasted:
Produces:
def bubble_sort(items):
for i in range(len(items)):
for j in range(len(items) - 1 - i):
if items[j] > items[j + 1]:
items[j], items[j + 1] = items[j + 1], items[j]
Current markdown_extensions
markdown_extensions:
- admonition
- attr_list
- meta
- pymdownx.details
- pymdownx.highlight:
linenums: true
- pymdownx.inlinehilite
- pymdownx.magiclink:
repo_url_shortener: true
- pymdownx.tabbed:
alternate_style: true
- pymdownx.superfencesAdding the following CSS is a workaround to get around this but not ideal:
.highlight .hll {
display: inline;
}Best regards,
Andrew
andrewetchen and abhiTronix
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open