Adding reference link to part of h1

I’m trying to make a few words of an h1 header as a link, but can’t figure out how to do that. First I tried to embed the HTML but that didn’t work.

html.H1('Presented by <a href="http://www.linktosouce.com">link to source</a>')

And then add the dash html.A within the header, but that also didn’t work

html.H1("Presented by" + html.A("link to souce", href="http://www.linktosouce.com"))

Is there a way to do this?

Thanks!

Hi @thejbills and welcome to the Dash Community :slight_smile:

Here is one way to do this:

html.H1(dcc.Markdown("Presented by [link to source](https://community.plotly.com/)"))

Thanks! I overlooked the Markdown option.