# Smart(er) paste HTML to md

**URL:** <https://discourse.devontechnologies.com/t/smart-er-paste-html-to-md/62067>\
**Category:** DEVONthink\
**Created:** [February 16, 2021, 5:06pm UTC](https://discourse.devontechnologies.com/t/smart-er-paste-html-to-md/62067 "2021-02-16T17:06:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![chrillek](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/chrillek/32/29340_2.png) [@chrillek](https://discourse.devontechnologies.com/u/chrillek)\
**Post date:** [February 18, 2021, 11:44am UTC](https://discourse.devontechnologies.com/t/smart-er-paste-html-to-md/62067/2 "2021-02-18T11:44:23Z")

</div>

I fiddled around a bit and came up with this possible solution:

> [@Bookmarklet to convert HTML selection to Markdown](https://discourse.devontechnologies.com/t/bookmarklet-to-convert-html-selection-to-markdown/62170):
>
> Since somebody asked in [another thread](https://discourse.devontechnologies.com/t/smart-er-paste-html-to-md/62067) about the possibility to convert parts of a HTML document to Markdown including links etc.: I fiddled around a bit and came up with this bookmarklet: javascript:(() =\> { const script = document.createElement("script"); script.type = "text/javascript"; script.src = "https://unpkg.com/turndown/dist/turndown.js"; script.async = false; script.defer = false; document.head.appendChild(script); script.addEventListener('load', () =\> { const sel = window.getSelecti…

---

_[View the full topic](https://discourse.devontechnologies.com/t/smart-er-paste-html-to-md/62067)._
