Underline in Markdown
Markdown has no underline syntax. Neither CommonMark nor GitHub Flavored Markdown (GFM) defines one, and _text_ with underscores makes italics, not an underline. To underline text, use an HTML tag such as <ins> or <u> where the renderer allows HTML, or a Pandoc span when you convert to Word.
This word is <ins>underlined</ins> on GitHub.
This word is <u>underlined</u> where inline HTML is allowed.
Why does Markdown not have underline?
Markdown's emphasis marks come from plain-text email habits, where *stars* and _underscores_ marked a word. When Markdown turned them into HTML, both became italics or bold, and no mark was left for underline. On screens there is a practical reason too: underlined text is easily mistaken for a link.
What are the options for underlined text?
| Method | Syntax | Where it renders |
|---|---|---|
<ins> tag |
<ins>text</ins> |
GitHub (documented), VS Code preview, Obsidian |
<u> tag |
<u>text</u> |
Renderers that allow inline HTML, such as VS Code preview and Obsidian |
| Inline style | <span style="text-decoration: underline">text</span> |
Only where style attributes are kept; GitHub removes them |
| Pandoc span | [text]{.underline} |
Pandoc Markdown, including Word output |
GitHub's formatting guide lists <ins> for underlined text (GitHub Docs, checked November 2026). In HTML, <ins> means inserted text and <u> means text with a non-textual annotation, such as a misspelled word. Both display as underlined by default.
How do you underline text in a Word document made from Markdown?
With Pandoc, use a bracketed span with the underline class. It becomes real underline formatting in the .docx file:
Please sign on the [dotted line]{.underline} below.
pandoc notes.md -o notes.docx
This works with Pandoc's default Markdown input. With -f gfm, the span is not recognized and the brackets show as typed. Raw <u> and <ins> tags are dropped in Word output, so the text arrives without the underline.
What should you use instead of underline?
Underline usually stands for one of three things, and each has a more portable form:
- Emphasis: use
*italic*or**bold**. See bold, italic and strikethrough. - A heading or label: use a heading, which also shows up in a table of contents.
- A highlight: Obsidian and some other apps read
==text==as highlighted text, but other apps show the equals signs, so check where the file will be read.
Does underline survive copy and paste?
Pasting underlined text from a web page or a document into a Markdown editor usually loses the underline, because there is no Markdown to convert it to. Some editors keep it as an <u> tag. Check the source after pasting.
Underline in Noteline
Noteline has no underline command, because Markdown has no underline syntax. If a note contains <u> or <ins>, the editor shows the tags as typed, and HTML export, printing and the desktop app's Word and PDF export remove the tags and keep the plain text. For emphasis that survives every export, use Cmd+B or Cmd+I on a Mac (Ctrl+B or Ctrl+I on Windows and Linux).
Common questions
Does Ctrl+U underline text in Markdown editors?
In many Markdown editors, Ctrl+U or Cmd+U does nothing or does something else, because there is no syntax to insert. Editors that do underline usually insert an HTML tag.
Does __text__ make an underline?
No. Two underscores make bold text in CommonMark, the same as **text**.
Can I underline a link differently?
Links are underlined or styled by the page's CSS, not by Markdown. Without control of the stylesheet, link styling cannot be changed from the Markdown file.