MichaelMure / mdr

MarkDown Renderer for the terminal
MIT License
434 stars 19 forks source link

unformatted code blocks for copy+paste? #16

Open christian-korneck opened 4 years ago

christian-korneck commented 4 years ago

thanks for this useful project. From using mdr for a short while I've only noticed one little annoyance: It's not easy to copy and paste from code blocks rendered by mdr because there's an indent and a marker character.

     ┃ $ ls
     ┃ README.md

So you either have to clean up your clipboard's contents after pasting or do a cat myfile.md, navigate to the right code block and copy again. I find that both interrupt my flow.

It would be great if mdr had a second render mode that preserves code blocks in a way that makes it easy to copy from them, even though it affects readability. (Maybe something like mdr -p | --preserve ?)