HTML link to Markdown

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

I am taking notes about an article on a website. I would like to copy and paste external links. So, I turn this: < a href=”https :\/\/example.com” >example< /a> into \[The Title](https://example.com\) (a markdown link).

Is there something that does that?

Things I have tried

Manually converting between html and markdown.

Obsidian will display the link as normal utilizing the HTML code in Reader Mode but not Editing Mode.

If you’d prefer it to be converted to Markdown then you could use a plugin:

PASTE REFORMATTER: https://www.obsidianstats.com/plugins/paste-reformatter

Or you could use an online tool:

Or code:

FYI I have used none of these options so I cannot tell you if they work ok or not.

1 Like

I misstated the issue, and sometimes link text is not obvious.

On Android, I just have the link, not the anchor element..

So, I need:

https://example.com

to:

[THE TITLE FROM THE SERVER](https://example.com)

or some fallback.

So, the plugin doesn’t work? The web page works, but I have to add an anchor element. Same with html2obsidian. Thanks though.

There is actually a different plugin for that obsidian-auto-link-title - Obsidian Hub - Obsidian Publish

I just tested pasting a url into a new note with the plugin enabled and it fetched the correct website name/title and turned it into markdown. Switch to Reader mode to see it without markdown.

1 Like

Thank you!

@cheyrn When you post example Markdown, HTML, or other code, please mark it as code to prevent the forum software from rendering or garbling it. Thanks!

1 Like