Skip to content

Markdown Documentation Welcome to the ultimate guide to Markdown! Whether you're a beginner just starting out or an advanced user looking to refine your skills, this comprehensive guide has got you covered. Markdown is a lightweight markup language with plain-text formatting syntax, which means it's easy to write and read without much overhead.

License

Notifications You must be signed in to change notification settings

amrouvitch/markdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Hi 👋! My name is Aditya Kumar Gupra and I'm a student, from Jharkhand, India

javascript logo react logo html5 logo css3 logo nodejs logo express logo mongodb logo php logo figma logo canva logo bootstrap logo tailwindcss logo git logo github logo mysql logo nextjs logo


Markdown Documentation with Examples

Welcome to the ultimate guide to Markdown! This comprehensive guide covers everything from beginner to advanced topics, with plenty of examples to illustrate each concept.


Table of Contents

  1. Introduction to Markdown
  2. Basic Syntax
  3. Advanced Syntax
  4. Extended Syntax
  5. Markdown Best Practices
  6. Markdown Tools and Resources

Introduction to Markdown

Markdown was created by John Gruber in 2004 to provide an easy-to-read, easy-to-write plain text format that can be converted to HTML. It's widely used for writing documentation, creating websites, authoring books, and much more.

Why Use Markdown?

  • Simplicity: Easy to learn and use.
  • Readability: Plain text files are easy to read without rendering.
  • Flexibility: Converts to HTML, PDF, and other formats.
  • Portability: Supported by many applications and platforms.

Basic Syntax

Let's start with the basics. These are the essential elements you'll use most frequently in Markdown.

Headings

Headings are created using the # symbol. The number of # symbols indicates the level of the heading.

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Output:

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraphs

Simply write your text without any special syntax. To create a new paragraph, separate lines of text with a blank line.

This is a paragraph.

This is another paragraph.

Output:

This is a paragraph.

This is another paragraph.

Emphasis

You can add emphasis using asterisks * or underscores _.

  • Italic: Wrap the text in single asterisks or underscores.

    *italic* or _italic_

    Output:

    italic or italic

  • Bold: Wrap the text in double asterisks or underscores.

    **bold** or __bold__

    Output:

    bold or bold

  • Bold and Italic: Wrap the text in triple asterisks or underscores.

    ***bold and italic*** or ___bold and italic___

    Output:

    bold and italic or bold and italic

Blockquotes

Use the > symbol to create blockquotes.

> This is a blockquote.

Output:

This is a blockquote.

Lists

  • Unordered Lists: Use -, *, or + followed by a space.

    - Item 1
    - Item 2
      - Subitem 1
      - Subitem 2

    Output:

    • Item 1
    • Item 2
      • Subitem 1
      • Subitem 2
  • Ordered Lists: Use numbers followed by a period and a space.

    1. First item
    2. Second item
       1. Subitem 1
       2. Subitem 2

    Output:

    1. First item
    2. Second item
      1. Subitem 1
      2. Subitem 2

Advanced Syntax

For more complex documents, Markdown provides additional syntax.

Links

Create hyperlinks using brackets for the text and parentheses for the URL.

[Link text](http://example.com)

Output:

Link text

Images

Similar to links, but with an exclamation mark ! before the brackets.

![Alt text](http://example.com/image.jpg)

Output:

Alt text

Code

  • Inline Code: Use backticks ` to wrap inline code.

    Here is some `inline code`.

    Output:

    Here is some inline code.

  • Code Blocks: Use triple backticks ``` or indent the lines with four spaces for code blocks.

    def hello_world(): print("Hello, World!")

    Output:

    def hello_world():
        print("Hello, World!")
    

Tables

Create tables using pipes | and dashes - to separate headers and cells.

| Header 1 | Header 2 |
|----------|----------|
| Cell 1   | Cell 2   |
| Cell 3   | Cell 4   |

Output:

Header 1 Header 2
Cell 1 Cell 2
Cell 3 Cell 4

Extended Syntax

Markdown also supports extended syntax for more advanced use cases.

Footnotes

Add footnotes using [^1] and define them at the bottom of your document.

This is a sentence with a footnote.[^1]

[^1]: This is the footnote.

Output:

This is a sentence with a footnote.1

Task Lists

Create task lists with - [ ] for unchecked items and - [x] for checked items.

- [ ] Task 1
- [x] Task 2

Output:

  • Task 1
  • Task 2

Strikethrough

Use double tildes ~~ to strike through text.

~~This text is struck through.~~

Output:

This text is struck through.


Markdown Best Practices

  • Consistency: Stick to one style for headings, lists, and other elements.
  • Readability: Use blank lines to separate blocks of text and elements.
  • Descriptive Links: Use meaningful link text rather than generic phrases like "click here."
  • File Organization: Keep your Markdown files organized in a clear and logical structure.

Markdown Tools and Resources

Here are some tools and resources to help you get the most out of Markdown:


Certainly! Here are some official and widely respected resources to deepen your understanding of Markdown:

  1. The original Markdown site by John Gruber:

  2. CommonMark:

  3. GitHub Flavored Markdown (GFM):

    • GitHub Flavored Markdown Spec
    • GitHub has its own slightly extended version of Markdown, which adds features like task lists, tables, and strikethrough.
  4. Markdown Guide:

    • Markdown Guide
    • An excellent resource for both beginners and advanced users, with comprehensive explanations and examples.
  5. Markdown Here:

  6. Pandoc:

    • Pandoc User’s Guide
    • Pandoc is a universal document converter that supports Markdown among many other formats, and its user guide is an invaluable resource.

These resources will help you explore Markdown further and provide you with detailed specifications and examples.

Footnotes

  1. This is the footnote.

About

Markdown Documentation Welcome to the ultimate guide to Markdown! Whether you're a beginner just starting out or an advanced user looking to refine your skills, this comprehensive guide has got you covered. Markdown is a lightweight markup language with plain-text formatting syntax, which means it's easy to write and read without much overhead.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published