paulhibbitts / markdown-basics

A basic set of Markdown examples.

Home Page:https://docsify-this.net/?basePath=https://raw.githubusercontent.com/paulhibbitts/markdown-basics/main&toc=true&edit-link=https://github.com/paulhibbitts/markdown-basics/blob/main/README.md&toc-headings=h2,h3#/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Markdown

What is Markdown?

Markdown is a syntax to format the display of content stored as plain text - similar but simpler than HTML formatting

Why Markdown?

  • System-independent
  • Text only format (perfect for version control)
  • Separation of content vs. presentation
  • Human-readable (i.e. more than HTML)
  • Can also contain HTML snippets

Markdown Examples

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading

# h2 Heading

# h3 Heading

# h4 Heading

# h5 Heading
# h6 Heading

Horizontal Rule


Emphasis

This is bold text

This is also bold text

This is italic text

This is also italic text

Strikethrough

Blockquotes

This is an example Blockquote.

Lists

Unordered

  • Create a list by starting a line with -, or *
  • Sub-lists are made by indenting 2 spaces:
    • So this is a sub-list item!

Ordered

  1. Lorem ipsum dolor sit amet

  2. Consectetur adipiscing elit

  3. Integer molestie lorem at massa

  4. You can use sequential numbers...

  5. ...or keep all the numbers as 1.

Start numbering with offset:

  1. foo
  2. bar

Code

To create code blocks you can indent every line of the block by at least four spaces or one tab

<html>
  <head>
  </head>
</html>

You can also create code blocks without indenting lines, using inline backticks or triple backticks fenced code blocks.

Inline code

Block code "fences"

Sample text here...

Syntax highlighting

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

console.log(foo(5));

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.

Links

link text

link with title

Autoconverted link https://github.com/nodeca/pica

link to another Markdown file

Images

Octocat