Brief rules for Markdown syntax
title
The title is the most commonly used format for every article. In Markdown, if a piece of text is defined as a title, just add a #
sign before the text.
# 一级标题
## 二级标题
### 三级标题
And so on, a total of six headings, it is recommended to add a space after the pound sign, which is the most standard Markdown syntax.
list
Students who are familiar with HTML must know the difference between an ordered list and an unordered list. Under Markdown, the display of the list only needs to add -
or before the text to become an unordered list, and the ordered list directly adds a symbol *
before the text. 1.
2.
3.
and the text with a space of one character.
quote
If you need to quote a short sentence from elsewhere, use the citation style.
> 例如这样
>
Just add this angle bracket (greater than sign) before the text
Pictures and Links
The syntax for inserting a link is similar to that for inserting a picture, the difference is a !
number
The address of inserting the picture needs a picture bed, here we recommend the service of CloudApp , and you can generate the URL address.
bold and italics
Bold and italics in Markdown are also very simple, use two *
syntaxes that contain a block of text to be bold, and one syntax that *
contains a block of text is italic.
For example: bold here and italic here
sheet
Tables are where I find Markdown more tiring. Examples are as follows:
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
The table generated by this syntax is as follows:
Tables Are Coolcol 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
code box
If you are a programmer and need to quote the code box elegantly in the article, it is very simple to implement in Markdown, just wrap the middle code with two `, eg `code`
. legend:
Use tab
keys to indent.
Dividing line
The syntax of the dividing line only needs to start a new line and enter three asterisks in a row ***
.
summary
At this point, the basic syntax of Markdown is basically no big problem in daily use. As long as you practice more and cooperate with useful tools, you will definitely be able to write things smoothly. More grammar rules. In fact, Mou's Help document example is very good. When you use Mou for the first time, the document will be displayed. Secondly, you can also use the CMD+R
shortcut keys to quickly open the document during the writing process. Look up and learn grammar.
Some recommendations related to Markdown
Compatible tools
- Droplr
- Cloudapp
- ezShare for Mac
- Bib Figure Bed Restoration Plan
- Mark Feixiang, a Markdown editor for Evernote, highly recommended
Read related articles
- Why writers should save their manuscripts in Markdown
- A Brief Talk on Markdown Writing
- Markdown tool complete
- Drafts + Scriptogr.am + Dropbox to create a mobile Markdown style blog
- Turing Community - How to use Markdown
- Three reasons why we should learn Markdown
- A Beginner's Guide to Markdown Grammar Writing by ibuick
Markdown is a lightweight "markup language". It has many advantages and is widely used by more and more writing enthusiasts and writers. Please don't be confused by "markup" and "language" when you see this, the syntax of Markdown is very simple. There are no more than ten commonly used markup symbols. Compared with the more complex HTML markup language, Markdown is very lightweight, and the learning cost does not require too much. Once you are familiar with this grammar rule, there will be A once and for all effect.
Get to know Markdown
As mentioned in the introduction just now, Markdown is a lightweight "markup language" for writing. It replaces typesetting with concise grammar, unlike the word processing software Word or Pages that we generally use, which has a large number of typesetting, Font settings. It allows us to focus on codewords, using "markup" syntax instead of common typographical formats. For example, the keyboard can handle everything from the content to the format and even the illustrations in this article. At present, there are many editors that support Markdown syntax, including many websites (such as Jianshu ) that also support Markdown text entry. From writing to completion, you can export Markdown in whatever format you want. You can export files in HTML format for website publishing, or you can easily export them in PDF format. Resumes written in this format can be more favored by HR. You can even use CloudApp , a cloud service tool, to upload your articles directly to web pages to share your articles. Tumblr, the world's largest light blogging platform, also supports editing and direct uploading using Markdown tools such as Mou.
Official Markdown Documentation
Here you can see the official Markdown grammar rules document. Of course, I will also use my own way to explain the usage of these grammars in actual use.
Advantages of using Markdown
- Focus on your text content rather than typography.
- Easily export HTML, PDF and native .md files.
- Plain text content, compatible with all text editors and word processors.
- Readable and intuitive. A writing language for everyone.
What tool should I use?
Mac platform
- On Mac OS X, I strongly recommend you to use Mou , a free and very easy-to-use Markdown editor, which supports real-time preview. You can edit the Markdown language on the left, and the preview effect will be generated in real time on the right. The author's article is Mou. written by the application.
Then there are many other similar options. If you are an editor, I strongly recommend you to buy Ulysses III , this app was shortlisted for The Best of 2013 in Apple's Mac App Store last year , and it supports more writing formats and multiple documents than Mou. The applications of Mou and iA Writer are based on the single-document management method, while Ulysses III supports the management of Folder and Filter. Multiple Sheets can be created in a Folder, and Combine processing can be performed between Sheets.
Windows, iOS, Web Platforms
-
The author has never used the Markdown tool under Windows, but after being introduced by a friend, there are two quite good ones, one is called MarkdownPad and the other is called MarkPad .
-
There are quite a few apps on the iOS side that support Markdown syntax editing, such as Drafts, Day One, iA Writer, etc.
-
On the web side, I strongly recommend Jianshu , a product that has countless people who love words constantly creating and sharing. There is no more comfortable place to use Markdown on the Web side than Jianshu. It also supports real-time preview of the left and right columns, and the fonts are elegant and concise.
- Also on the web side, Draftin , an online MD editor, is almost perfect.