jperasmus / docsify-copy-code

A docsify plugin that copies Markdown code block to your clipboard
MIT License
99 stars 72 forks source link

The copyed content ends with a newline #15

Closed jintaixizhao closed 4 years ago

jintaixizhao commented 5 years ago

The copyed content ends with a newline, which is convenient sometimes, would you like to fix it ?

jperasmus commented 5 years ago

Hi @jintaixizhao

Are you saying it should not end with a newline? Would you be willing to contribute a PR?

Niek commented 1 year ago

Would it be possible to make the newline optional? When copying bash commands it's a bit annoying, since it will paste an empty newline at the end of the command.