Why use learning markDown

You don’t need to click on a WYSIWYG tool like Word to take notes, you just need to encode and understand the characters, and the syntax is super simple, and the most important thing is that you can get into the habit of taking notes. (I mainly want to write articles, use it first)


What is the MarkDown

Markdown is a lightweight markup language created by John Gruber. It allows people to “write documents in plain text format that is easy to read and write, and then convert them into valid XHTML(or HTML) documents” – Wikipedia

If you don’t understand wikipedia’s definition of Markdown, forget it. John Gruber’s own description of Markdown focuses on “easy to read, easy to write.”

In daily projects, MD files are usually used as documentation instructions. I personally believe that using MD well will improve the readability of instructions


The benefits of the MarkDown

  1. You don’t have to design the layout, you just have to focus on the content. Before using Markdown, think about using Word: What font should I use for the title? What font should I use? Too cumbersome, unknowingly willpower will be consumed. In fact, the so-called typesetting is not the author’s idea and the level and structure of the content, after learning to use Markdown, a few simple symbols to solve these problems, the style is particularly neat and elegant.
  2. Versatile Markdown can be used anywhere and can be used to create websites, notes, ebooks, speeches, email messages and various technical documents
  3. Files that compare Markdown format text with other documentation markup languages can be opened by any application. Doc or.docx documents and may still be garbled or misformatted.
  4. The world of recognized programmers is full of Markdown, with simple books, GitChat, GitHub, CSDN, and many more supporting Markdown documents. Official technical documents are written using Markdown.

In short, Markdown is the easiest way I know to write notes that are well laid out and comfortable to read, with zero typography costs. Reduce interference, reduce costs, improve efficiency, and make it look neat on any device. It is not only easy to read, but also very readable


The title

Use ‘#’ to display titles at levels 1-6

### ### ##Copy the code

Primary title

The secondary title

Level 3 title


The list of

Use * or + or – or 1. 2

* Listing 1 - Listing 2 - Listing 3 + Listing 4 - Listing 5 1. Listing 6 2. Listing 7Copy the code
  • Listing 1
    • List 2
    • List 3
  • List four
  • List five
  1. Listing 6
  2. Listing 7

block

Use ‘>’ to display blocks

> Outermost > > Layer 1 nesting > > > Layer 2 nestingCopy the code

The outermost layer

The first layer is nested

The second layer is nested


code

For code blocks, use ‘to enclose the code such as var a = 0; Or use “” to enclose code blocks

``` var foo = function (bar) { return bar++; }; ` ` `Copy the code
var foo = function (bar) {
  return bar++;
};
Copy the code

Add images

Add pictures! [Name](picture address) for example! [js](https://balabala write your own link.image)Copy the code

Let me just copy it and I won’t parse it


HTML tags

Markdown supports partial HTML

<div><h1>XXX</h1> </div>
Copy the code

XXX


Markdown rendering

There are several ways to render a Markdown document

  • Github has a readme.md file for every project on Github
  • You can also open the MarkDown Preview Plus plug-in using Google Chrome, but it doesn’t render very well
  • Under MAC, it is recommended to use MacDown to open the MarkDown file, and then export the PDF directly for printing
  • In Windows, you can use Typora to open markdown files. You can also export PDF files directly for printing

Reference document

Rookie Tutorial Link


Start SAO years, promotion and pay rise, marry bai Fu Beauty, to the peak of life!!