'Copy to Markdown' improvements
See original GitHub issue- Images with a
width
orheight
attribute set needs to be converted back to an<img>
as Markdown images can’t have a width/height -
Mentions should not be converted to links - Copying a rendered emoji (🔥🔥🔥) in Chrome on macOS results in:
<g-emoji alias="fire" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f525.png" ios-version="6.0" title=":fire:">🔥</g-emoji><g-emoji alias="fire" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f525.png" ios-version="6.0" title=":fire:">🔥</g-emoji><g-emoji alias="fire" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f525.png" ios-version="6.0" title=":fire:">🔥</g-emoji>
We should strip out all the junk and just copy the character.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:12 (9 by maintainers)
Top Results From Across the Web
Need feedback on the release of a Markdown enhancement in ...
We're bringing you one of the fixes you requested.. There have been complaints that when you copy Markdown syntax and paste into the...
Read more >Cut the tyranny of copy-and-paste with these coding tools
These researchers use computational notebook systems such as R Markdown, Jupyter Book and Observable to create 'executable manuscripts', ...
Read more >Copy markdown from comments · Issue #486 - GitHub
Successfully merging a pull request may close this issue. Copy Markdown from Markdown containers jgierer12/refined-github. 3 participants.
Read more >Copy code blocks in markdown with a single click - GitLab.org
Instead of selecting all the code within a block and using your keyboard to copy it to your clipboard, code blocks within markdown...
Read more >v0.31: Paste rich text to markdown - Deepdwn by billiam - Itch.io
v0.31: Paste rich text to markdown ... When you paste HTML content into Deepdwn (copied from a webpage or online document editing tool),...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve disabled this functionality temporarily now (will be published automatically in about 3 hours) until we can implement an alternative way to activate it. I agree now that it should not be the default copy behavior.
I’ve also been experiencing it making copy not work at all randomly. @bfred-it Seems like https://github.com/sindresorhus/refined-github/pull/636 didn’t totally fix it after all.
I was just searching through the issue tracker to try to find a way to disable this selectively, and was indeed thinking a keyboard shortcut would be the way to go.
My use case is copying commands from READMEs; if I Ctrl+C them now, I get backticks, which of course confuse my shell.