Skip to content

Instantly share code, notes, and snippets.

@letanure
Created March 16, 2018 15:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letanure/1701fa4132e1846173e6725b035dc56e to your computer and use it in GitHub Desktop.
Save letanure/1701fa4132e1846173e6725b035dc56e to your computer and use it in GitHub Desktop.
markdown -demo.md

This a test of all markdown possibilities:


Headings

h1 Heading 1

h2 Heading 2

h3 Heading 3

h4 Heading 4

h5 Heading 5
h6 Heading 6

Horizontal Rules





Emphasis

This is bold text

This is bold text

This is italic text

This is italic text

Strikethrough


Links

link text

link with title

This is an example inline link.

This link has no title attribute.


Blockquotes

Blockquotes can also be nested...

...by using additional greater-than signs right next to each other...

...or with spaces between arrows.


Indentation

indentation 1-1

indentation 1-2 indentation 2-1


Lists

Unordered

  • Create a list by starting a line with +, -, or *
  • Sub-lists are made by indenting 2 spaces:
    • Marker character change forces new list start:
      • Ac tristique libero volutpat at
      • Facilisis in pretium nisl aliquet
      • Nulla volutpat aliquam velit
  • Very easy!

Ordered

Numers in sequence

  1. Lorem ipsum dolor sit amet
  2. Consectetur adipiscing elit
  3. Integer molestie lorem at massa

Numers not in sequence

  1. You can use sequential numbers...
  2. ...or keep all the numbers as 1.

Images

Minion Stormtroopocat

Like links, Images also have a footnote style syntax

Alt text

With a reference later in the document defining the URL location:


Tables

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.

Right aligned columns

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.

Code

Inline code

Indented code

// Some comments
line 1 of code
line 2 of code
line 3 of code

Block code "fences"

Sample text here...

Syntax highlighting

var foo = function (bar) {
  return bar++;
};

console.log(foo(5));

@Komi7
Copy link

Komi7 commented Jan 30, 2023

Aligning Text

By default, all text in Markdown fields are aligned to the left. You can also align to the right, or center the content by wrapping the text in div tags. The below code shows both implementations.

"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..." "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."

"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..." "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment