yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.91k stars 322 forks source link

Feature request: Copy Markdown as HTML #291

Open doggy8088 opened 5 years ago

doggy8088 commented 5 years ago

What is the problem?

This is a feature request.

Feature request

Sometime I need copy Markdown as HTML and paste into my blog posts. I do this all the time. Hope this feature can be implemented.

Thanks!

yzhang-gh commented 5 years ago

As commented in #23, accessing clipboard is a problem.

doggy8088 commented 5 years ago

I think you could create a new temp file and copy HTML into it as a workaround before the access to clipboard problem been solved.

yzhang-gh commented 5 years ago

Then it is doable. (to render selected Markdown snippet to a HTML file and open it)

Hoping someone can help since I am sort of busy now.

doggy8088 commented 5 years ago

@neilsustc When you have time, you might check it out this project Copy Markdown as HTML . This extension do can access to clipboard. I don't know how he made it, but I think it's possible to achieve.

cobblepot1 commented 1 year ago

I'd like this feature also to make this extension more "all-in-one". I very often need to copy parts of a markdown page into HTML for pasting into online website managers/blogs. Having to print to HTML and then open the file and copy/paste the right parts is inconvenient. The problem with using the extension 'copy markdowns as html" is that it doesn't add anchor links to TOC so it's not a full solution. I wish I could contribute, but hope this can be added in any case. Thanks for considering it.