ambiguousmouse ambiguousmouse - 3 months ago 31
Markdown Question

Bold part of a url in markdown

I want to bold part of a url written in markdown.


Intended result:

In this example, I want to bold the word "google" inside the whole url. Here, I capitalized what I wanted to bold.

Related question: is there a way to prevent urls from turning into links?

I am processing this with a marked.js. I'm looking for something that will work in

===== Part 2 =====


Intended result: http://google.*com*

How do I also bold the .com part in addition to the google part?


This seems to work


Using the above gives the HTML result:

<a href="">http://<strong>example</strong>.com</a>

That is exactly what you want.