Guide
Previewing Reddit Markdown, tables, spoilers and flair before posting
Reddit posts are written in a variant of Markdown. It supports bold, italic, lists, quotes, tables and links, and adds a few features of its own, notably spoilers. A mistake in a table, a missed blank line or a stray symbol can turn a long post into a mess, and editing after posting is awkward. This previewer shows the post as you write it, with the title, flair and body laid out like a Reddit post card.
What it shows
Fill in the subreddit, an optional flair, the title and the body. The preview draws a card with the subreddit name, a line saying who posted and when, the title, the flair as a small pill and the body rendered from Markdown. Statistics below the preview show the title length out of 300, the body length out of 40,000 and the number of spoilers. Over-long text gives an error.
Markdown features
Headings, bold, italic, quotes, bullet and numbered lists, links and code are rendered. Tables use the pipe format with a row of dashes under the header, and the alignment marks :--, :-: and --: are honoured. Strikethrough is written with two tildes. The preview follows standard Markdown rules, so a missing blank line before a table or a list can stop it from rendering, and you will see that here first.
Spoilers and superscript
Reddit hides text written between >! and !<. The preview replaces such pairs before it renders Markdown, because a greater-than sign at the start of a line would otherwise be read as a quote. The hidden text appears as a dark bar, and a click or the keyboard reveals it. Superscript is written ^word for one word or ^(several words) for a phrase, and appears raised.
Safety
Because the preview turns your Markdown into HTML in the page, the result is sanitised with DOMPurify before it is displayed. Scripts, event handlers and unsafe attributes are removed, so pasting text from anywhere cannot run code on this page. Links are shown but not followed automatically, and nothing is posted or sent anywhere.
A worked example
The sample is a discussion of an episode finale. It has bold text, a three-row table of episode scores with columns for episode, score and verdict, the spoiler >!The villain was the narrator all along!<, a struck-through word, a link to an episode guide, the superscript in “2^nd season notes” and a bullet list. The preview shows 1 table, 1 spoiler and the statistics line “Spoilers 1”, and clicking the dark bar reveals the sentence.
Limits
The preview approximates Reddit. The real site’s fonts, spacing and newer editor differ, and some communities add custom styles or restrict formatting. Images, polls, embedded media and user mentions are not supported, and the preview does not check subreddit rules. Test the final post in a private place or a sandbox community if the formatting is critical.
Posting with care
Read the rules of the subreddit before you post, since many require flair, ban certain formats or ask for spoiler tags on the whole post. Write a clear title that says what the post is about and keep the body easy to scan. After posting, check the live post and edit mistakes quickly, because early readers form their view of a post at once.
Related tools
- Markdown Editor is a general writing space with a live Markdown preview.
- Markdown Table Generator builds the pipe tables that Reddit renders.
- Discord Text Formatter makes spoilers for Discord, which use a different syntax.
- Social Post Mockup Maker draws a post card for presentations.
Checked against the current version of the Reddit Post Previewer on .

