<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Hi Tim,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="margin:0px"><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:13px">The command that’s used to convert a dropped file to markdown can be simply re-worked to "</span>convert from html" command. I’ve attached it, but you can also simply install the attached command.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">I’ve simply opened the command Bundles -> Markdown -> File Drop Actions -> Insert HTML File as Markdown.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">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.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="margin:0px"><div id="bloop_customfont" style="margin:0px">Then I changed </div><div id="bloop_customfont" style="margin:0px"><br></div><div id="bloop_customfont" style="margin:0px"><div id="bloop_customfont" style="margin:0px"><font face="Courier New">python "$TM_BUNDLE_SUPPORT/bin/html2text.py" <"$TM_DROPPED_FILE"|perl -pe 's/\\/\\\\/g; s/`/\\`/g; s/\$/\\\$/g'</font></div><div><br></div><div>to</div></div><div id="bloop_customfont" style="margin:0px"><br></div><div id="bloop_customfont" style="margin:0px"><font face="Courier New">python "$TM_BUNDLE_SUPPORT/bin/html2text.py"  << "$TM_SELECTED_TEXT"</font></div><div style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:13px"><br></div><div style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:13px">I’ve tried this, but only with a limited sample:</div><div style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:13px"><br></div><div><div><font face="Courier New"><p></font></div><div><font face="Courier New">  This is a <a href="test.html">test</a></font></div><div><font face="Courier New"></p></font></div></div><div><br></div></div> <div><br></div><div>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 <a href="https://github.com/Alir3z4/html2text/blob/master/docs/usage.md#available-options">new version</a> that might. Perhaps the file could be upgraded?</div><div><br></div><br> <div id="bloop_sign_1486236840031718912" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">Thanks,</div><div style="font-family:helvetica,arial;font-size:13px"><br>Graham Heath<br><br></div></div> <br><p class="airmail_on">On February 4, 2017 at 2:42:15 AM, Tim Bates (<a href="mailto:timothy.c.bates@gmail.com">timothy.c.bates@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>I’ve been working with some old html that is moving to a markdown-based site.<br><br>Textmate has a neat feature where if you drop an html file onto your markdown window, its contents are pasted… as markdown! (neat!).<br><br>Question/feature request: <br>1. Can we have a “convert from html" command in markdown? <br><br>2. Is there an option on the html processor to [give](normal) links instead of [bibliography][1]<br><br>[1] Style links?<br><br><br>_______________________________________________<br>textmate mailing list<br><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br><a href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a></div></div></span></blockquote></body></html>