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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With