Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a word underline in Markdown

Tags:

How to make a word underline in Markdown?

For example: bold = **bold** or __bold__, italic = *Italic* or _Italic_.

I have tried with 2 and 3 underscores, but it is not working. Also tried by taking the reference of markdown-it.js.

like image 338
RENU SINGH Avatar asked Jun 30 '17 06:06

RENU SINGH


People also ask

How do you put a line through text in Markdown?

Strikethroughs. In order to create a crossed-out text, use the tilde in Markdown twice in a row, followed by the respective text and then another two tildes. ~~This text is struckthrough.

How do I add a line in .md file?

When you do want to insert a <br /> break tag using Markdown, you end a line with two or more spaces, then type return.

How do you add a note in Markdown?

Turn on Markdown Formatting for notes. For this, go to Tools > Options > Appearance and check "Use Markdown format in notes".

How do you make text italic in Markdown?

Markdown Text Formatting Bold + Italic Creating bold italic text is simply a matter of using both bold (two asterisks) and italic (one asterisk) at the same time, for a total of three asterisks on either side of the text you want to format at once.


2 Answers

since markdown is a markup language and In fact you can use HTML/CSS inside it, the easiest way I've found so far is:

text here <span style="text-decoration: underline">underlined text</span> other text 

Note: you can still use markdown syntax inside the <span> tag.

like image 135
Hocine Abdellatif Houari Avatar answered Sep 17 '22 17:09

Hocine Abdellatif Houari


In Jupyter notebook, you can use the following to get underscored text

<u>underscored text </u> 
like image 23
Zed Fang Avatar answered Sep 20 '22 17:09

Zed Fang