preface
Markdown is an extremely concise markup language that uses concise syntax instead of typography, allowing us to focus on words. Markdown’s syntax is concise, easy to learn, and its functions are stronger than plain text. It is convenient for format conversion and supports various types. It can easily export HTML, PDF, Word and other format files.
Typora is a free, lightweight Markdown editor that turns this interaction model on its head by elegantly combining code editing and browsing with a single window. So as to bring users a more smooth and intuitive WYSIWYG Markdown writing experience. Typora is extremely simple, without any extra features, and provides a pure and efficient and natural writing experience, making it an ideal tool for both heavy and light users.
Basic grammar
1.1 Classification Title
Typora can automatically generate and display the outline according to the title level of the current document, and the lower right corner of the window is displayed with numbers.
Usage: # + space followed by title name
# 1 title # # 2 headlines # # # # # # # 3 4 headlines # # # # # # # 5 # # # # six levels of headingsCopy the code
Effect:
Level 1, Level 2, level 3, Level 4, level 5, level 6
1.2 Font Format
Text center: <center> Where text needs to be centered </ Center > Underline: < U > Where text needs to be underlined </ U > Italic: * Where text needs to be italicized * or _ Where text needs to be italicized _ Bold: ** Where text needs to be bold ** Where text needs to be bold: *** Write bold text here *** strikeout: ~~ strikeout ~~Copy the code
Display effect:
Centered text:
Underline: Text to be underlined italic: Text to be italic or _ Bold: Text to be italic Bold: Text to be bold Bold: Text to be bold Strikeout: ~~ strikeout ~~
1.3 the link
Markdown supports two types of link syntax: inline and reference. Inline is often used more often
1.3.1 inline type
Grammar description:
[] inside the link text, () inside the link address, note is English parentheses, () “” can specify the title attribute for the link can be added or not. The effect of the title property is that the title text appears when the book table hovers over the link. Shortcut key Ctrl + K
[Link text](link address"Link title"Link address and link title before a space welcome to [baidu]//www.baidu.com)
Copy the code
Display effect:
Welcome to Baidu
1.3.2 reference type
Referential hyperlinks are usually used for academic papers, or another case: if a link is used in multiple places in the paper, the way the links are created will facilitate the unified management of links.
Grammar description:
The reference link is divided into two parts, the text is written [link text] [link mark], in any position of the text to add [link mark]: link address “link title”, there is a space between the link address and the link title.
If the link text itself can be used as a tag, you can also write [] as link text []
Frequently used websites are [Baidu][1[], [CSDN]2] and [Blog Park][3]
[csdn][2] is a good [website][] [1]:https://www.baidu.com "Baidu"
[2]:https://blog.csdn.net/ "csdn"
[3]:https://www.cnblogs.com "Blog Park"[the website] : HTTPS//blog.csdn.net/
Copy the code
Display effect:
1.4 line
You can create a line with more than three asterisks, minus signs, and bottom lines on one line, and nothing else in the line. You can also insert a space between the asterisk or minus sign.
***
---
___
Copy the code
Display effect:
1.5 code
There are two ways to insert program code, either by indenting it (Tab) or by wrapping it with a ‘ ‘symbol (usually under the ESC key).
Syntax description: Java
1.To insert in-line code, i.e. to insert a word or line of code, use the form 'code'.2.To insert multiple lines of code, you can use indentation or "code", as shown in the example. ` ` `Copy the code