GithubHelp home page GithubHelp logo

markdown-tutorial's Introduction

Mastering Markdown

Based on Wes Bos' Mastering Markdown course.

Text decoration

This is a basic paragraph.

italic

bold

strong emphasis

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
This heading has a custom id {#custom-heading}

Links

http://theodinproject.com

Link to the Odin Project

A tagged link

A different tagged link

This is a link to the custom heading but I'm not sure if it is working and I don't presently know how to check. Perhaps you need enough content to have the tagged heading exist off-screen before the link will snap to the heading.

Images

Basic image format:

Image alt text

Tagged image link:

Tagged image

Image with an external link:

Externally linked image

Lists and Nesting

Unordered Lists

  • milk
  • eggs
  • bread

Ordered Lists

You don't need to number the list, just use the number "1." to mark an item in an ordered list.

  1. Item A
  2. Item B
  3. Item C

Sub Items

  1. Step One

    • This is a sub bullet
    • This is also a sub bullet
      • And so is this. The style is not controlled by the syntax.
  2. Step Two

    1. This is a sub ordered item
    2. This is another
  3. Step Three

    Here is a nested paragraph. You can also nest images.

    Nested image

Line Breaks

Just use an HTML
tag to create a line break.

Horizontal Rules

Here is a horizontal rule:


Block Quotes

This is a block quote.

With two paragraphs.

Code Blocks

Markdown accepts HTML and CSS (when placed in an HTML <style></style> tag.)

You can fence your code with triple tilde.

You can also define the language you are using:

<body>
    <h1>Hello World.</h1>
</body>
let x = true;
const dog = `Great Dane`;

You can also show diff in code...

var x = 100;
- var y = 200;
+ var y = 300;

Tables

Tables are created by piping cells and positioning headings and data above or below defined column syntax, respectively.

Heading 1 Heading 2 Heading 3
Item 1 Item 2 Item 3
Item A Item B Item C

You can define the alignment of elements with colons:

Right Aligned

Heading 1 Heading 2
Item 1 Item 2

Left Aligned

Heading 1 Heading 2
Item 1 Item 2

Centered

Heading 1 Heading 2
Item 1 Item 2

Mixed

Heading 1 Heading 2
Item 1 Item 2

GitHub Syntax

Check boxes

  • Milk
  • Eggs
  • Bacon

Issue and user linking

Adding an issue number like #1 and @alexrmann tags will provide GitHub specific links that are not part of the standard Markdown syntax.

markdown-tutorial's People

Contributors

alexrmann avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.