Skip to content

The tutorial of Markdown Language.Teach you how to note with fascinating appearance.

Notifications You must be signed in to change notification settings

conquer1the2world3/Markdown-tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Syntax

Let us start learning how to use Markdown.

Here we will learn the basic syntax at first.

Header

  • You can use one # all the way up to ###### six for different heading sizes.

e.g.

#### THis is a header tag

THis is a header tag

Emphasis

  • There are 3 ways to emphasize words: bold, italic, all bold and italic.
    • italic: Wrap the sentence with a pair of * * or _ _
    • bold: Wrap the sentence with a pair of ** ** or __ __
    • all bold and italic: Wrap the sentence with a pair of *** ***
*italic* or _italic_

italic or italic

**the text will be bold**

the text will be bold

***The sentence is all bold and italic***

The sentence is all bold and italic

You can also use them in combination.

e.g.

_A italic sentence with **bold word**_

A italic sentence with bold word

Lists

  • Use any of the (* - +) symbols to create a list.
  • Also can use 4 spaces or 'tab' to bulid a nested list.And the maximum number of level is 3.

Unordered list

+ This is a unordered list
  - this is a sublist  
    * this 
  • This is a unordered list
    • this is a sublist
      • this

Ordered list

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

Images

![Image Name](Image address)

If you want to embed images, this is how you do it:

![Image of Yaktocat](https://octodex.github.com/images/spidertocat.png)

Image of Yaktocat

Links

Similar to the Image

[NAME](address) or just write the link address

e.g.

[Homepage](https://github.com/conquer1the2world3/hello-world/blob/master/README.md)

or

https://github.com/conquer1the2world3/hello-world/blob/master/README.md

Homepage or https://github.com/conquer1the2world3/hello-world/blob/master/README.md

Blockquotes

Quote text with a >

>I like the words most from "The Little Prince":

>You know — one loves the sunset, when one is so sad…

>someone loves a flower, of which just one single blossom grows in all the millions and millions of stars, it is enough to make him happy just to look at the stars. He can say to himself, "Somewhere, my flower is there…" But if the sheep eats the flower, in one moment all his stars will be darkened… And you think that is not important!

I like the words most from "The Little Prince":

You know — one loves the sunset, when one is so sad…

meone loves a flower, of which just one single blossom grows in all the millions and millions of stars, it is enough to make him happy just to look at the stars. He can say to himself, "Somewhere, my flower is there…" But if the sheep eats the flower, in one moment all his stars will be darkened… And you think that is not important!

Code

  • inline code: Wrap them in backticks:

`var example = true`

var example = true

  • code block:
    1. indent with 4 spaces
    2. mulitiple lines code with ```code```
  • highlighting: include the program lauguage such as java,C++ and so on.

e.g.

public class Demo {

    public static void main(String[] args) {

        int [][] arr=new int[3][3];

        int sum=0;

        for(int i=0;i<arr.length;i++)

            for(int j=0;j<arr[i].length;j++)

                sum=sum+i+j;

        System.out.println(sum);

    }
}

Dividing line

Use 3 or more * - _

This is a dividng line 
*************** 
---------------
_______________

This is a dividng line




Escape Character

Use \ to transfer the specific charcter into ordinary character.

The specific character includes (\ ` * _ {} [] () # + - . !)

Extended Syntax(Github Flavored Markdown)

GitHub.com uses its own version of the Markdown syntax that provides an additional set of >useful features, many of which make it easier to work with content on GitHub.com.

To learn more at GitHub Flavored Markdown Spec

Task Lists

With a - and a regular space character followed by [] to create a task list item. Use[x]to a build a complete list item.

 [ ] Eat
- [x] Code
  - [x] JAVA
  - [x] MYSQL
  - [x] JDBC
- [x] entertainment 
- [ ] Sleep
  • Eat
  • Code
    • JAVA
    • MYSQL
    • JDBC
  • entertainment
  • Sleep

Tables

Use - to sepreating the firt row(header) and others, and then dividing each column with |

|    sno    | sname  |
| --------- | -----  |
| 200215101 | Peter  | 
| 200215102 | Alice  | 
| 200215103 | kate   | 
| 200215104 | Bob    | 
| 200215105 | Arthur | 
| 200215106 | Adora  | 
| 200215107 | Caitlin|
sno sname
200215101 Peter
200215102 Alice
200215103 kate
200215104 Bob
200215105 Arthur
200215106 Adora
200215107 Caitlin

You can also alight text to different postion, to the left, right or center of a column by including :

| bidentifier | ridentifier | lenddate            |
| :---------: | :---------- | ------------------: |
| 1           | 102         | 2020-05-17 00:00:00 |
| 11          | 103         | 2020-05-29 00:00:00 |
| 12          | 104         | 2020-05-21 00:00:00 |
| 13          | 105         | 2020-05-19 00:00:00 |
| 2           | 103         | 2020-05-18 00:00:00 |
| 3           | 105         | 2020-06-26 00:00:00 |
| 5           | 102         | 2020-05-23 00:00:00 |
| 6           | 103         | 2020-05-24 00:00:00 |
| 7           | 104         | 2020-08-27 00:00:00 |
bidentifier ridentifier lenddate
1 102 2020-05-17 00:00:00
11 103 2020-05-29 00:00:00
12 104 2020-05-21 00:00:00
13 105 2020-05-19 00:00:00
2 103 2020-05-18 00:00:00
3 105 2020-06-26 00:00:00
5 102 2020-05-23 00:00:00
6 103 2020-05-24 00:00:00
7 104 2020-08-27 00:00:00

strikethrougn

Wrap any words with ~~text~~

~~Strikethrough~~

Strikethrough

Emoji

You can send emoji by typing :EmojiCode

:apple: 🍎

For full and available emoji, look at this emoji-cheat-sheet

About

The tutorial of Markdown Language.Teach you how to note with fascinating appearance.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages