Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bold part of a url in markdown

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

URL: http://google.com

Intended result: http://google.com

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 http://dillinger.io/

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

URL: http://google.com

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

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

like image 821
ambiguousmouse Avatar asked Feb 21 '14 21:02

ambiguousmouse


1 Answers

This seems to work

[http://**example**.com](http://example.com). 

Using http://daringfireball.net/projects/markdown/dingus the above gives the HTML result:

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

That is exactly what you want.

like image 159
Kartik Prabhu Avatar answered Oct 11 '22 21:10

Kartik Prabhu