Basic Markdown syntax
This post showcases the basic Markdown syntax in major Markdown editors.
Taken from:
- Grav
- Hugo LoveIt theme
- Pandoc markdown
Headings
H1 heading # h1 Heading
could mess up the table of contents so it is not shown.
1 | ## h2 Heading |
h2 Heading
h3 Heading
h4 Heading
h5 Heading
h6 Heading
Inline HTML
HTML tags are supported if you need a particular HTML tag or html comments.
1 | Paragraph in Markdown. |
Paragraph in Markdown.
Epcot Center
Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.
Paragraph in Markdown.
Horizontal Rules
1 |
|
Emphasis
Bold, italics, and strikethrough can be used either indivisually or in combination.
1 | **rendered as bold text** |
rendered as bold text
rendered as bold text
rendered as italicized text
rendered as italicized text
Strike through this text
Marking this text
Blockquotes
1 | > **Fusion Drive** combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined. |
Fusion Drive combines a hard drive with a flash storage (solid-state drive) and presents it as a single logical volume with the space of both drives combined.
This is a block quote.
A block quote within a block quote.
Superscripts and subscripts
(Disabled in favor of latex math syntax)
1 | H~2~O is a liquid. 2^10^ is 1024. |
Lists
Unordered
1 | * Lorem ipsum dolor sit amet |
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
Ordered
💡 If you just use 1. for each number, Markdown will automatically number each item.
1 | 1. Lorem ipsum dolor sit amet |
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
Ordered but custom start number
1 | 9) Ninth |
- Ninth
- Tenth
- Eleventh i. subone ii. subtwo iii. subthree
Task lists
1 | - [ ] an unchecked task list item |
Markdown Code blocks
Inline monospace
1 | `code here` |
code here
Block fenced code, with syntax highlighting
1 | ```python |
1 | print("Hey!") |
Tables
See tables generator for table syntax. Use use editors like typora or marktext to edit tables with ease.
1 | | Option | Description | |
Option | Description |
---|---|
data | path to data files to supply the data that will be passed into templates. |
engine | engine to be used for processing templates. Handlebars is the default. |
ext | extension to be used for dest files. |
Simple tables
(Pandoc only)
1 | Right Left Center Default |
Grid tables
(Pandoc only)
1 | +---------------+---------------+--------------------+ |
Links
1 | <https://assemble.io> |
https://assemble.io contact@revolunet.com Assemble Upstage
Footnotes
💡 Footnotes are automatically numbered.
1 | This is a digital footnote[^1]. |
This is a digital footnote[1] This is a footnote with "label"[2]
Keyboard strokes
Needs markdown-it-kbd.
1 | [[Ctrl]] + [[Alt]] + [[Delete]] |
Ctrl + Alt + Delete
Images
1 | ![Minion](https://octodex.github.com/images/minion.png) |
You can attach images or documents to GitHub issues for free image hosting.
Math rendering
See math rendering.
Extended syntax
See extended syntax.