Markdown Underline: How to Underline Words in Markdown
Standard Markdown intentionally omits native underline syntax to avoid confusion with hyperlinks. However, you can underline text by inserting the HTML tag <u>your text</u>, or in Discord using two underscores (__text__).
In standard Markdown, use HTML: <u>underlined text</u> In Discord chat, use double underscores: __underlined text__
In standard Markdown, use HTML: underlined text
Note: In standard web markdown, links are underlined by default, so manual underlining is discouraged unless necessary.
Platform Compatibility & Differences
Supports the HTML `<u>underlined</u>` tag in READMEs and issues.
Supports `__underlined__` natively (two underscores).
Does not support underlines in Markdown mode to prevent link confusion.
Supports the HTML `<u>` tag.
How to Use Markdown Underline
- Copy the ready-to-use Underline syntax snippet below.
- Inspect the rendered live preview in both light and dark themes.
- Review platform compatibility differences for GitHub, Discord, Reddit, and Jupyter notebooks.
- Check common pitfalls and copy formatted snippets directly.
Practical Examples
Underline Syntax Pattern
Underlines in digital text often signal clickable links. When underline is required, use HTML `<u>` or platform-specific syntax.
In standard Markdown, use HTML: <u>underlined text</u> In Discord chat, use double underscores: __underlined text__
Rendered visual format
Common Mistakes & Troubleshooting
- Using underscores thinking it underlines: single underscore `_text_` creates italics, and double `__text__` creates bold in standard CommonMark (except on Discord).
Frequently Asked Questions
Why does Markdown not have native underline syntax?
John Gruber designed Markdown prioritizing web readability: on the web, underlined text is expected to be a clickable hyperlink. Underlining non-clickable text harms usability.