How to Write Markdown Alerts and Export Them as PNG
Compare a GitHub warning marker with a bold label in a Markdown quote, then export a workshop reminder as a PNG you can share.
On this page
01Write a note or warning for GitHub02Make the label readable across Markdown editorsWrite a GitHub Markdown alert by putting > [!NOTE] or > [!WARNING] on a line of its own, then start the message on the next line with > . When you plan to export the same text as a PNG, test the marker in your image converter first. A bold label inside a regular blockquote gives you a readable version for renderers that show the bracketed marker literally.
Use NOTE for context someone might miss and WARNING for a situation that needs attention. GitHub also documents TIP for advice, IMPORTANT for something the reader needs to succeed, and CAUTION when an action could have negative consequences. Put the alert at the top level, with blank lines around it. Open the rendered README or comment to check the result. GitHub documentation on alerts
The example below repeats the same room change in two forms. Paste the contents of the code block into your renderer to see what it does with the marker.
## Markdown alert check
### GitHub alert
> [!WARNING]
> Room changed to B204. Use the east entrance.
### Bold label inside a quote
> **Warning**
>
> Room changed to B204. Use the east entrance.
In the live Markdown2Image converter test on December 3, 2026, the first block appeared as a regular quote with [!WARNING] still visible. The second showed Warning on its own line, followed by the same message. The PNG downloaded from the converter showed both results.
Start the quote with > **Warning**. Add a line containing just > before the message so the label and body become separate paragraphs. For an announcement, a short label such as Room change tells readers what to look for before they reach the room number. This version uses standard blockquote and bold syntax. The theme still controls the appearance of the border, background and text. CommonMark blockquote rules
- If the preview shows the bracketed marker, try the bold-label version in a copy for export.
- If your label and message run together, check that the blank line inside the quote contains its own
>. - If the preview prints the leading
>characters as text, make sure you copied only the contents of the example and removed any surrounding code fences. Leave the alert outside nested lists or quotes when you need GitHub's styled box. More examples of blockquote boundaries
Copy the sample below for a workshop announcement. The room change sits between the timetable and the packing reminder, so someone scanning the card can find it in a few seconds.
## Workshop day-of card
Doors open at 09:30. The session starts at 10:00.
> **Room change**
>
> Meet in B204. Use the east entrance.
Bring your laptop and charger.
- Open the converter and paste the sample into the Markdown editor. Markdown2Image converter
- Check the preview for the start time, room B204, and east entrance. Confirm that the label Room change sits above the instruction.
- Select PNG and click Download image. Open the downloaded file and check that the details match the preview before you send it to the workshop group.
The downloaded sample includes the converter's footer.
Open the finished card in the destination app. Check the start time and room number at the size the chat or slide displays. If the room number wraps or becomes hard to read, shorten the surrounding sentence or increase the text size and export again.
Keep the start time, room and entrance in the message text as well. A participant can copy the details into a calendar, and someone using a screen reader can get the same instructions. If the destination accepts alt text, a concise description is “Workshop starts at 10:00 in B204. Use the east entrance.”