The command that’s used to convert a dropped file to markdown can be simply
re-worked to "convert from html" command. I’ve attached it, but you can
also simply install the attached command.
I’ve simply opened the command Bundles -> Markdown -> File Drop Actions ->
Insert HTML File as Markdown.
Copied the contents of the drop action to a new command (Cmd + N, select
Command from the dropdown). Be sure that the new command is in the
"Markdown" bundle, or the script that does the conversion won’t be located
where its expected.
Then I changed
's/\\/\\\\/g; s/`/\\`/g; s/\$/\\\$/g'
python "$TM_BUNDLE_SUPPORT/bin/html2text.py" <<
I’ve tried this, but only with a limited sample:
This is a <a href="test.html">test</a>
As for #2, I think the short answer is "no". I’ve looked in the included
version of the code, and I don’t see the support for this just. That said,
there does seem to be a new version
might. Perhaps the file could be upgraded?
On February 4, 2017 at 2:42:15 AM, Tim Bates (timothy.c.bates(a)gmail.com)
I’ve been working with some old html that is moving to a markdown-based
Textmate has a neat feature where if you drop an html file onto your
markdown window, its contents are pasted… as markdown! (neat!).
1. Can we have a “convert from html" command in markdown?
2. Is there an option on the html processor to [give](normal) links instead
 Style links?
textmate mailing list