Markdown syntax can enable you to be more expressive with your text posts on this website, with the ability to write **bold** text, add hyperlinks or embed images onto your profile page, Direct Messages, forum posts and elsewhere - any place on nonshy that says "Markdown formatting supported."
This is a simple reference sheet for Markdown syntax. Markdown was pioneered by John Gruber and the de facto place to find in-depth documentation is at https://daringfireball.net/projects/markdown/syntax where it was originally described.
Markdown is now a widely supported format across a variety of apps and websites, and there are a few different "flavors" of Markdown with slightly varied behaviors. This website uses GitHub Flavored Markdown, an extension of Markdown that supports fenced code blocks, tables, and other useful features - many of which you can learn about on this page.
A paragraph is defined as a group of lines of text separated from other groups by at least one blank line. A hard return inside a paragraph doesn't get rendered in the output.
There are two methods to declare a header in Markdown: "underline" it by
writing ===
or ---
on the line directly below the
heading (for <h1>
and <h2>
, respectively),
or by prefixing the heading with #
symbols. Usually the latter
option is the easiest, and you can get more levels of headers this way.
Prefix a line of text with >
to "quote" it -- like in
"e-mail syntax."
You may have multiple layers of quotes by using multiple >
symbols.
``` This is a GitHub-style "fenced code block", denoted by having three backticks/grave symbols above and below the code. ```
The basic syntax for a hyperlink looks like [Text](https://example.com)
. You can also
write your links "footnote style", where the link text goes like [Text][1]
and then you
provide the URL at the bottom of your post. See the examples below:
<angle brackets>
:
\*
to insert a literal asterisk so that it doesn't get mistaken for e.g. emphasized text,
a list item, etc.Markdown provides backslash escapes for the following characters:
\ backslash ` backtick * asterisk _ underscore {} curly braces [] square brackets () parenthesis # hash mark + plus sign - minus sign (hyphen) . dot ! exclamation mark
All Markdown syntax has a corresponding primitive HTML tag, and you may prefer to just write the HTML directly. This is supported too!
Note: non-trivial tags will be automatically blocked and hidden from the Markdown output. You can't
use CSS classes or styles, <script>
tags, or other dangerous HTML.