ambiguousmouse ambiguousmouse - 1 year ago 112
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download