Markdown
You can add rich-text to the editor, but also by using markdown.
Markdown is a popular markup syntax that's widely known for its simplicity and popularity online. GitBook supports it as a keyboard-friendly way to write rich and structured text.
We support all the classic inline Markdown formatting:
Formatting | Markdown version | Result |
---|---|---|
Bold | **bold** | text |
Italic | _italic_ | italic |
Strikethrough | ~strikethrough~ | strikethrough |
- Heading 1:
# A first-level title
- Heading 2:
## A second-level title
- Heading 3:
### A third-level title
```
⏎
creates a new code block.```
py⏎
creates a new code block with Python syntax highlighting.We use Prism for syntax highlighting. Here's an easy way to check which languages Prism supports: Test Drive Prism. If you notice a mismatch between GitBook and Prism, there's a chance we are a version or two behind. We'll catch up soon!
We automatically detect ordered and un-ordered lists as you type.
- Begin a line with
-
or*
to start a bullet list. - Being a line with
1.
to start a numbered list. UseTab
to go one level deeper, andShift+Tab
to go up. - Begin a line with
- [ ]
to start a task list.
Begin a line with
>
to create a block quote. If you select an entire paragraph from start to end, typing >
will wrap the content in a block quote.This is a block quote
Last modified 6mo ago