AI + Python: Ten Markdown syntax simple tutorial

Markdown is a lightweight markup language, such as * # users can use other simple marker symbol with minimal input costs generated expressive documents, is also writing more and more enthusiasts, contributor widely used. This article hopes to use intuitive way to tell Markdown syntax.

First, create a title

Create a header in the Markdown syntax is very simple, just use the corresponding number of "#" plus text on it, the following example (label written grammar of the left, the right is generated style, the same below):



Second, create a text list of items

Create a list of items text syntax is very simple, just add the text in front of each list "*" or "+" on it, you need to add spaces between words and symbols, for example:



Third, create a reference

Create a list of quoted text syntax is very simple, just add the text in front of each list ">" on it, you need to add spaces between words and symbols, for example:



Fourth, insert the code

A code inserted in the document, and let highlighted code, the method is best to use three anti quotes "` "wrap code on the list, for example:



V. Insert Table

Inserted in the document table, only need a few simple symbols separated by a line of text on it, "|" cell division ":" on the other side represents the alignment, specifically to achieve the following:



Sixth, insert formulas

In a document written in a certain syntax, you can easily insert a formula, specifically to achieve the following:



Seven, insertion flow chart

In a document written in a certain syntax, you can easily insert a flow chart, without having to manually draw, this feature is indeed very powerful, specific implementation is as follows:



Eight, Insert Table of Contents menu

In the document, you can easily generate the entire document directory menu, this function is very powerful, just insert [TOC] directory of the entire document can be generated in the document specific location, specific implementation is as follows:



Nine, insert the dividing line

Inserting a dotted line in the document for document content segmentation and decoration is very simple, just type "---" on it, specifically to achieve the following:



X. Other tips

There are other little tricks, but also useful in the preparation of documents, such as line breaks in the segment, you can knock two spaces at the end of the line, and press Enter to force a line break within a paragraph can be achieved; by "* text * "You can text italic; use" text ** ** "can be text bold; use" #### "can insert a blank line, use the" first line indent "first line indent and so on can be achieved.

看到上面说的一些技巧,您是否想马上尝试用上面的语法编写一篇文档呢?上面的语法很简易,而且很强大。上面说的十点基本上涵盖了Markdown的主要语法,还有其他小的技巧,读者可以在使用的过程中逐渐积累,希望这篇文章对您在写文档时有所帮助!

本文版权归传智播客人工智能+Python学院所有,欢迎转载,转载请注明作者出处。谢谢!

作者:传智播客人工智能+Python学院

首发:http://python.itcast.cn/

Guess you like

Origin www.cnblogs.com/abdm-989/p/12004968.html