relidon
relidon

Reputation: 2312

How to paste rendered html as markdown in sublime text?

I used to use an app called Ulysses. It is a beautiful way to write in markdown. It has it's limitations so I managed to install few packages in sublime text and give it the same features Ulysses has. Now I can not find any package to do the following. I'll give a short scenario, as I can't explain it otherwise:

I am reading a blog post. I selected it all and hit copy. In Ulysses, I'd press cmd+alt+v it would ask me where is the content coming from, I'd select from HTML. The end result is the same content from the web, but formatted in markdown. For example, if the blog post has a subtitle with h2 Ulysses would paste that as ## title

I tried searching for a similar plugin in Sublime Text, I installed ClipboardCommands and super-awesome-paste. I can't recall what they did, but neither did what I needed. Does such a plugin exist?

Upvotes: 2

Views: 1368

Answers (1)

MattDMo
MattDMo

Reputation: 102932

To search for Sublime Text plugins, use Package Control's search. A quick search for convert html markdown yields two relevant results: HTML2Text and Pandoc. Both will convert HTML to Markdown. The Pandoc plugin requires Pandoc on the system.

Upvotes: 7

Related Questions