This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Missing whitespace when copying codeblock contents #29
Labels
bug
Something isn't working
Comments
this is temporarily fixable by editing the source. replace this in line 316: // comment this out:
// return !min ? content : content.replace(new RegExp(`^ {${min}}`, "gm"), '');
// put this there:
return content idk whether thatbreaks things elsewhere, but for now its better than the two missing whitespaces |
perhaps you should make a PR? |
nah, im just removing functionality cheaply without knowing what else it might break, there has to be a reason why thats there, and im just basically skipping it. until i know why that is there in the first place that would be a bad idea |
This is fixed in the latest commit. I've submitted a pullrequest to make the latest commit load shiki correctly which fixes both bugs for me. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
New lines & (some) tabs are not copied to clipboard when a codeblock's content is copied.
This could be fixed multiple ways, but a favorable solution would be to add a "copy code" button on the codeblock.
Reproduction Steps
The text was updated successfully, but these errors were encountered: