# Convert copy-and-pasted rich text (italic, bold, etc) to markdown instead of or in addition to HTML

**URL:** <https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069>\
**Category:** Feature archive\
**Created:** [June 17, 2020, 7:54pm UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069 "2020-06-17T19:54:30Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![SquareBottle](https://forum.obsidian.md/user_avatar/forum.obsidian.md/squarebottle/32/1268_2.png) [@SquareBottle](https://forum.obsidian.md/u/SquareBottle)\
**Post date:** [June 17, 2020, 7:54pm UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/1 "2020-06-17T19:54:30Z")

</div>

When copying a chunk of text that contains rich text formatting and pasting into most apps, the rich text formatting is preserved. When pasting the same chunk into Obsidian, the rich text formatting seems to be converted into HTML tags by default. Because Obsidian uses markdown, I think it would be more useful to have it converted to markdown by default (or at least given the option).

If that’s not clear, then I hope the following is helpful.

When pasting text into Google Docs, Text Edit, etc. I get an output like this:

> James Clear. _Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones_. New York, NY: Avery, 2018.

The exact same clipboard entry produces this in Obsidan:

> ```
> James Clear. <i>Atomic Habits: An Easy &#38; Proven Way to Build Good Habits &#38; Break Bad Ones</i>. New York, NY: Avery, 2018.
> 
> ```

What I’m saying is that I wish it would instead produce this:

```
James Clear. _Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones._ New York, NY: Avery, 2018.

```

Because it always helps to just show something whenever possible, I recorded a [quick demonstration](https://youtu.be/3Emkxf20tsg) of what I’m talking about in 30 seconds. In it, I simply paste a chunk of text containing italics and an ampersand into Obsidian, Google Docs, and Text Edit to compare the outputs.

That said, there are some weird things I’ve noticed while exploring this. If I paste into Google Docs or Text Edit, copy what I just pasted from either of those apps, and _then_ paste that into Obsidian, I get this:

> James Clear. Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones. New York, NY: Avery, 2018.

I’d actually prefer this plaintext output over the HTML output, but markdown output would still be my top choice.

So, maybe all of this is actually a bug? Or maybe it’s partly a feature request and partly a bug? Most (but not all) other apps seem to preserve formatting, so if it’s a bug then I don’t think it’s another program’s bug – but of course, I’m not a programmer. I’m just trying to make sure I include all the information you might want.

One more odd thing worth mentioning is that the behavior I’m talking about doesn’t seem entirely consistent. When I copy directly from Zotero (instead of from Zotero by way of ZotHero), it outputs the plaintext formatting in Obsidian. But it still outputs the desired rich text formatting in Google Docs and Text Edit. As far as I can tell, ZotHero itself is just copying from Zotero, so this is all quite mysterious to me. What is consistent is that other programs seem to always paste what I want, but Obsidian never pastes the markdown I want.

In any case, I hope I’ve made the desired behavior clear and done a good job of scouting this out. Thank you for considering.

---

<div class="post-metadata">

**Author:** ![desk7](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/d/91b2a8/32.png) [@desk7](https://forum.obsidian.md/u/desk7)\
**Post date:** [July 12, 2020, 10:16am UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/2 "2020-07-12T10:16:53Z")

</div>

I suggest 2 mode:

- paste as plain text
- paste as Markdown (by default)

Typora works the same.

---

<div class="post-metadata">

**Author:** ![pablofm](https://forum.obsidian.md/user_avatar/forum.obsidian.md/pablofm/32/1957_2.png) [@pablofm](https://forum.obsidian.md/u/pablofm)\
**Post date:** [July 27, 2020, 2:02pm UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/3 "2020-07-27T14:02:14Z")

</div>

Hello all,  
I am enjoying the process of learning Obsidian and how it may fit into my daily workflow. I have been a long-time Dynalist user and find that if I copy/paste a bulleted outline from Dynalist to Obsidian -all the formatting is lost. This means I spend an inordinate amount of time fixing formatting issues.

Is there any sort of trick to get around this problem? Is this a feature request? I assume so because it doesn’t seem that Obsidian is very good at retaining formatting of copy/pasted text in general.

An aside: Roam is incredibly friendly when it comes to copy/pasting from Dynalist, websites, and any other sources.

Thanks!

---

<div class="post-metadata">

**Author:** ![Vandesm14](https://forum.obsidian.md/user_avatar/forum.obsidian.md/vandesm14/32/56706_2.png) [@Vandesm14](https://forum.obsidian.md/u/Vandesm14)\
**Post date:** [August 18, 2020, 3:03pm UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/4 "2020-08-18T15:03:25Z")

</div>

The different paste mechanics on most software are:  
Ctrl+V for formatted text  
Ctrl+Shift+V for plain text

It’d be really nice to have this in Obsidian!

---

<div class="post-metadata">

**Author:** ![xander](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/x/f05b48/32.png) [@xander](https://forum.obsidian.md/u/xander)\
**Post date:** [September 22, 2020, 10:03pm UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/5 "2020-09-22T22:03:08Z")

</div>

> [@SquareBottle](#):
>
> I’d actually prefer this plaintext output over the HTML output, but markdown output would still be my top choice.

Has anyone figured out a solution to this? As others have mentioned, some other platforms support this natively.

This seems like a core functionality for interoperability with basic systems (e.g., outlook…) but definitely in order to make migrating notes from other systems into obsidian. Seems like there’s a few low-traffic topics that have all been merged.

---

<div class="post-metadata">

**Author:** ![luckman212](https://forum.obsidian.md/user_avatar/forum.obsidian.md/luckman212/32/3445_2.png) [@luckman212](https://forum.obsidian.md/u/luckman212)\
**Post date:** [October 31, 2020, 2:23pm UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/6 "2020-10-31T14:23:28Z")

</div>

This would be amazing to have. If it’s not going to be natively supported, maybe it’s possible to roll a plugin using something like [turndown](https://github.com/domchristie/turndown) to do the heavy lifting?

---

<div class="post-metadata">

**Author:** ![Burkhold](https://forum.obsidian.md/user_avatar/forum.obsidian.md/burkhold/32/5889_2.png) [@Burkhold](https://forum.obsidian.md/u/Burkhold)\
**Post date:** [October 31, 2020, 6:51pm UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/7 "2020-10-31T18:51:44Z")

</div>

Yes, this would be a most welcome addition/upgrade. I found I can export from DynaList to a text file and copy and paste the portion I want into Obs with formatting preserved but it is an extra step out of the way of workflow. Thanks.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [December 15, 2020, 2:55pm UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/8 "2020-12-15T14:55:07Z")

</div>

Copying\drag and drop from HTML will result in markdown conversion starting from 0.10.1

---

<div class="post-metadata">

**Author:** ![DandyLyons](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/d/48db29/32.png) [@DandyLyons](https://forum.obsidian.md/u/DandyLyons)\
**Post date:** [December 22, 2020, 3:25am UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/9 "2020-12-22T03:25:08Z")

</div>

You guys are so amazing!! 😃

---

<div class="post-metadata">

**Author:** ![Oshyan](https://forum.obsidian.md/user_avatar/forum.obsidian.md/oshyan/32/24766_2.png) [@Oshyan](https://forum.obsidian.md/u/Oshyan)\
**Post date:** [January 10, 2021, 9:30pm UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/10 "2021-01-10T21:30:07Z")

</div>

Agreed, I use Ctrl-Shift-V regularly throughout most apps and it works in most places. Have been surprised to find it doing nothing in Obsidian. Definitely needs to be added!

---

<div class="post-metadata">

**Author:** ![DandyLyons](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/d/48db29/32.png) [@DandyLyons](https://forum.obsidian.md/u/DandyLyons)\
**Post date:** [January 15, 2021, 11:39pm UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/11 "2021-01-15T23:39:42Z")

</div>

What about the current implementation do you not like? I just copy from any website and paste (ctrl v) into Obsidian. It automatically turns it into markdown with all of the formatting intact as Markdown.

---

<div class="post-metadata">

**Author:** ![manuelalonso](https://forum.obsidian.md/user_avatar/forum.obsidian.md/manuelalonso/32/12940_2.png) [@manuelalonso](https://forum.obsidian.md/u/manuelalonso)\
**Post date:** [May 12, 2021, 4:13am UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/12 "2021-05-12T04:13:01Z")

</div>

Why copy/paste from Textedit keeps the text as txt not md?

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [May 12, 2021, 4:38am UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/13 "2021-05-12T04:38:13Z")

</div>

because textedit is not html?

---

<div class="post-metadata">

**Author:** ![manuelalonso](https://forum.obsidian.md/user_avatar/forum.obsidian.md/manuelalonso/32/12940_2.png) [@manuelalonso](https://forum.obsidian.md/u/manuelalonso)\
**Post date:** [May 13, 2021, 6:09pm UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/14 "2021-05-13T18:09:44Z")

</div>

Thanks. As new and happy user of Obsidian I am trying to understand how to convert txt to md, otherwise I end up with this (see attached) and I cannot work with txt files in Obsidian as they appear on a separate popup window.

 ![image](https://forum.obsidian.md/uploads/default/original/2X/9/9fcbbc64a915524f228b6b9a474fe8d2adc76894.png)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [October 13, 2022, 2:32pm UTC](https://forum.obsidian.md/t/convert-copy-and-pasted-rich-text-italic-bold-etc-to-markdown-instead-of-or-in-addition-to-html/2069/15 "2022-10-13T14:32:13Z")

</div>

Archived on October 13, 2022, 2:32pm UTC


