How to Underline Text in Markdown and Export a PNG
Compare underscores, HTML underline tags, and literal code in Markdown, then export the tested workshop notice as a PNG.
On this page
01Choose markup for your destination02Export the preview as a PNGAn event host changes a workshop time and needs a small image for the chat. The draft has underscores around the new time, so the preview shows italics. If the image needs an underline, choose markup your renderer keeps and check the actual download.
CommonMark uses one underscore on each side for emphasis and two for strong emphasis, when the delimiter rules allow it. These commonly display as italics and bold. A line of dashes below a paragraph can form a Setext heading. For an underline within a sentence, use an HTML tag supported by the destination.
HTML <u> marks a nonverbal annotation and usually appears with an underline. HTML <ins> identifies added text in an edit. Both can have the same appearance while describing different things. GitHub's formatting guide documents <ins> for underlining on GitHub. If the same file is read in another editor, check its preview because rules for retaining inline HTML and applying styles vary.
CommonMark emphasis rules · MDN on u · MDN on ins · GitHub formatting guide
The same phrase appears five times below so you can compare formatting at a glance. The second part is a short reminder you could adapt for a team channel. Keep the bold “New time” label when you replace the event details. The line helps the date stand out, and the label carries its meaning even if the style disappears.
# Markdown underline check
- Single underscores: _Review today_
- Double underscores: __Review today__
- HTML u: <u>Review today</u>
- HTML ins: <ins>Review today</ins>
- Inline code: `<u>Review today</u>`
## Workshop update
**New time:** <u>Saturday at 10:30</u>
Meet at the east entrance ten minutes early.
In the production preview, the single-underscore phrase was italic and the double-underscore phrase was bold. Both HTML elements had an underline. The code example kept its angle brackets visible, and the time in the notice was underlined. The image above is the converter's own 1394 × 1002 PNG download using the same Markdown.
- Open the converter and paste the whole block into the Markdown editor. Preserve the blank lines around the heading and event notice.
- Switch to Preview and compare the five lines. Read the event time in the notice, including the digits and the “New time” label.
- Use Download image and select PNG if the export settings show another format. Open the saved file at its actual size and at the smaller width where recipients are likely to see it.
For a real announcement, keep the file name specific enough to find later. If a line has wrapped, shorten the phrase you underline so the cue and the actual time still read together. The export tested here uses the converter's normal download flow. An image made by capturing the browser window would include different margins and possibly editor controls.
- The word is italic or bold. Inspect the source for single or double underscores around it. Use the HTML form shown above if your renderer retains it.
- The angle brackets are visible. Check for backticks or an indented code block around the markup. Keep those when you want to show the syntax in a tutorial.
- The preview shows plain text. Try the example by itself. If the destination removes inline HTML or the theme suppresses its decoration, use a clear label and strong emphasis.
- The preview differs from the saved file. Check both with the same Markdown and export settings. Compare in a separate image viewer so browser zoom and the editor's layout do not affect your judgment.
- The underline looks like a clickable link. Use it on one short piece of information and send any actual booking or calendar link in the accompanying message.
Post a line of text with the same update, for example “New time Saturday at 10:30, east entrance.” For a web page, use alternative text that includes the event detail. Keep the original Markdown with the PNG so the next change can be made at the source. If the meeting time changes again, update the attachment and the plain-text reminder together.