Can I use this to convert HTML to Markdown?

surfmonkey89's Avatar

surfmonkey89

14 Sep, 2011 01:06 AM

I have quite a few html files that I've pulled from my various sites/blogs, which I'd like to convert to plain text & markdown syntax. So far, I haven't been able to find any tool that does this which doesn't rely on some command line script.

Can I view my local html files, and then save them out as markdown? If so, this would be a godsend.

Thanks in advance.

paul

  1. Support Staff 1 Posted by Brett on 14 Sep, 2011 01:14 AM

    Brett's Avatar

    Marked doesn't do reverse conversion (yet), but you might be interested in some of my other projects.

    • nvALT will let you drag urls onto the notes list and, if you set it up in preferences, will run the page through Readability and Markdownify to give you a stripped down Markdown version of almost any web article or blog post. I don't think I have it working with dragged files yet, though, but that's coming soon.
    • Marky does something very similar but on the web. It can't directly take uploads, but if you put your HTML in a dropbox, you can grab the public URL and feed it to Marky.

    Beyond those two, you might look at setting up PHP Markdownify, which has a command line interface for doing this as well. I combine it with Python Readability to do most of my conversions. Hope that helps.

  2. 2 Posted by surfmonkey89 on 14 Sep, 2011 01:25 AM

    surfmonkey89's Avatar

    Oh man, I totally forgot about the Dropbox public link thing. I can easily do it that way, using either of the two methods you describe.

    Thanks for the reminder!

  3. Brett closed this discussion on 14 Sep, 2011 02:02 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac