Link Search Menu Expand Document


  • Notice: all references of MPE in this guide is in reference to Dendron Markdown Preview Enhanced, the default markdown renderer of Dendron

Markdown Basics

This article is a brief introduction to GitHub Flavored Markdown writing.

What is Markdown?

Markdown is a way to style text on the web. You control the display of the document; formatting words as bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown. Mostly, Markdown is just regular text with a few non-alphabetic characters thrown in, like # or *.

Syntax guide


# This is an <h1> tag

## This is an <h2> tag

### This is an <h3> tag

#### This is an <h4> tag

##### This is an <h5> tag

###### This is an <h6> tag

If you want to add id and class to the header, then simply append {#id .class1 .class2}. For example:

# This heading has 1 id {#my_id}

# This heading has 2 classes {.class1 .class2}

This is a MPE extended feature.


*This text will be italic*
_This will also be italic_

**This text will be bold**
__This will also be bold__

_You **can** combine them_

~~This text will be strikethrough~~


Unordered List

- Item 1
- Item 2
  - Item 2a
  - Item 2b

Ordered List

1. Item 1
1. Item 2
1. Item 3
   1. Item 3a
   1. Item 3b

Definition List

Item 1
: Definition for Item 1

Item 2
~ Definition for Item 2
~ Another definition for Item 2, with a [link](


![GitHub Logo](/images/logo.png)
Format: ![Alt Text](url) - automatic!


As Kanye West said:

> We're living the future so
> the present is our past.

Horizontal Rule

Three or more...







Inline code

I think you should use an
`<addr>` element here instead.

Fenced code block

You can create fenced code blocks by placing triple backticks \`\`\` before and after the code block.

Syntax Highlighting

You can add an optional language identifier to enable syntax highlighting in your fenced code block.

For example, to syntax highlight Ruby code:

require 'redcarpet'
markdown ="Hello World!")
puts markdown.to_html
require 'redcarpet'
markdown ="Hello World!")
puts markdown.to_html

Code block class (MPE extended feature)

You can set class for your code blocks.

For example, to add class1 class2 to a code block

```javascript {.class1 .class}
function add(x, y) {
  return x + y

You can enable line number for a code block by adding line-numbers class.

For example:

```javascript {.line-numbers}
function add(x, y) {
  return x + y;

screen shot 2017-07-14 at 1 20 27 am

highlighting rows

You can highlight rows by add highlight attribute:

```javascript {highlight=10}

```javascript {highlight=10-20}

```javascript {highlight=[1-10,15,20-22]}

Task lists

- [x] @mentions, #refs, [links](), **formatting**, and <del>tags</del> supported
- [x] list syntax required (any unordered or ordered list supported)
- [x] this is a complete item
- [ ] this is an incomplete item


You can create tables by assembling a list of words and dividing them with hyphens - (for the first row), and then separating each column with a pipe |:

First Header | Second Header
------------ | -------------
Content from cell 1 | Content from cell 2
Content in the first column | Content in the second column

You can create a table from existing content using > Markdown Shortcuts: Add Table command.

Extended syntax


Need to enable enableExtendedTableSyntax in extension settings to get it work.

screen shot 2017-07-15 at 8 16 45 pm

Emoji & Font-Awesome

This only works for markdown-it parser but not pandoc parser.
Enabled by default. You can disable it from the package settings.







Content [^1]

[^1]: Hi! This is a footnote


The HTML specification

_[HTML]: Hyper Text Markup Language
_[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.




CriticMarkup is disabled by default, but you can enable it from the package settings.

There are five types of Critic marks:

  • Addition {++ ++}
  • Deletion {-- --}
  • Substitution {~~ ~> ~~}
  • Comment {>> <<}
  • Highlight {== ==}{>> <<}

CriticMarkup only works with the markdown-it parser, but not the pandoc parser.

Other Resources


The content of this page is derived from the following sources:

  1. markdown preview enhanced docs published under the University of Illinois/NCSA Open Source License
  2. markdown shortcuts docs published under the MIT License