Markdown is a lightweight markup language with plain-text-formatting syntax. Its main goal is to be very easy to read and write, even when not converted to HTML.
Type some Markdown on the left and see the HTML rendered on the right.
Markdown syntax guide
To create a heading, add between 1 and 6 #
in front of the word or phrase. The #
will correspond to the heading level.
To create a paragraph, use a blank line to separate one or more lines of text.
To create a line break, end a line with two or more spaces, and then press return/enter.
This is the first line.
This is the second line
To italicize a word or a phrase, add one asterisk or underscore before and after a word or phrase.
This text will be italic.
This text will also be italic.
To bold a word or a phrase, add two asterisks or underscores before and after a word or phrase.
This text will be bold.
This text will also be bold.
To create a blockquote, add a > in front of a paragraph. If you need to have a blockquote with multiple paragraphs you can add a > on the blank lines between the paragraphs.
If you need to nest blockquotes, add a >> in front of the paragraph you want to nest.
> Markdown is intended to be as easy-to-read and easy-to-write as is feasible.
>
> Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions.
>
To create an unordered list, add dashes (-), asterisks (*), or plus signs (+) in front of line items.
To create an ordered list, add numbers followed by perios and the line items.
Are normally indented four spaces or one tab.
You can wrap your code with ``` to create a code block, and by adding an optional language your code will get syntax highlighting.
You can indent every line of the block by at least four spaces or one tab.
console.log("Hello world!");
<h1>Hello World</h1>
To create a horizontal rule, use three or more asterisks (***), dashes (---), or underscores (___) on a line.
To add an image, add an exclamation mark (!), followed by an alt text in brackets, and the path or URL to the image asset.
To add a link to an image, enclose the Markdown for the image in brackets, and then add the link in parentheses
To create a link, enclose the link text in brackets, and then follow it immediately with the URL in parentheses.
To add a title, enclose it in parentheses after the URL.
This is a link to the repository.
You can read more about Markdown here.
To turn a URL or email address into a link, enclose it in angle brackets.
Header | Header |
---|---|
Content | Content |