Markdown语法

来源:互联网 发布:校园网限制mac地址 编辑:程序博客网 时间:2024/05/01 13:58

本人使用的编辑工具是Mou,下载地址:http://25.io/mou/

Markdown部分语法整理:

# **Mou**![Mon icon](http://25.io/mou/Mou_128.png)###锚点链接####第一章- [ 第一节](#step1)- [ 第二节](#step2)- [ 第三节](#step3)- [ 第四节](#step4)- [ 第五节](#step5)- [ 第六节](#step6)####第二章- [ 第一节](#step1)- [ 第二节](#step2)- [ 第三节](#step3)- [ 第四节](#step4)- [ 第五节](#step5)- [ 第六节](#step6)## Overview**Mou**,the missing Markdown editor for *web developers*.### Syntax #### Strong and Emphasize**strong** or __strong__ ( Cmd + B )*emphasize* or _emphasize_ ( Cmd + I )** Sometimes I want a lot of text to be bold.Like,seriously ,a  _LOT_ of text **#### Blockquotes>Right angle &lt; brackets &gt;are used for block quotes;#### Links and EmailAn email <example@example.com> link.Simple inline link <http://chenluois.com>,another inline link [Smaller](http://25.io/smaller/),one more inline link with title [Resize](http://resizesafari.com "a Safari extension").A [reference style][1] link. Input id, then anywhere in the doc, define the link with corresponding id:[1]: http://25.io/mou/ "Markdown editor on Mac OS X"Titles ( or called tool tips ) in the links are optional.#### ImagesAn inline image ![Smaller icon](http://25.io/smaller/favicon.ico "Title here"), title is optional.A ![Resize icon][2] reference style image.[2]: http://resizesafari.com/favicon.ico "Title"### Inline code and Block codeInline code are surround by `backtick` key .To create a block code:    Indent each line by at least 1 tab,or 4 spaces.    var Mou = exactlyTheAppIwant;#### Ordered ListsOrdered lists are created using "1." + Space:1. Ordered list item2. Ordered list item3. Ordered list item4. Ordered list item#### Unordered ListsUnordered list are created using "*" + Space:* Unordered list item* Unordered list item* Unordered list item* Unordered list itemOr using "-" + Space:- Unordered list item- Unordered list item- Unordered list item- Unordered list item#### Hard LinebreakEnd a line with two or more spaces will create a hard linebreak, called `<br />` in HTML. ( Control + Return )  Above line ended with 2 spaces.#### Horizontal RulesThree or more asterisks or dashes:***-------#### HeadersSetext-style:This is H1==========This is H2-----------****<h1>This is H1</h1>***#This is H1##This is H2###This is H3####This is H4#####This is H5######This is H6***### Extra Syntax#### FootnotesFootnotes work mostly like reference-style links. A footnote is made of two things: a marker in the text that will become a superscript number; a footnote definition that will be placed in a list of footnotes at the end of the document. A footnote looks like this:That's some text with a footnote.[^1][^1]: And that's the footnote.#### StrikethroughWrap with 2 tilde characters:~~Strikethrough~~~~hhh~~#### Fenced Code BlocksStart `with` a line containing 3 or more backticks, and ends with the first line with the same number of backticks:

Fenced code blocks are like Stardard Markdown’s regular code
blocks, except that they’re not indented and instead rely on
a start and end fence lines to delimit the code block.

#### TablesA simple table looks like this:first Header | second Header | third Header ------------ | ------------- | ------------content cell | content cell  | content cell content cell | content cell  | content cell If you wish, you can add a leading and tailing pipe to each line of the table:| First Header | Second Header | Third Header || ------------ | ------------- | ------------ || Content Cell | Content Cell  | Content Cell || Content Cell | Content Cell  | Content Cell |Specify alignment for each column by adding colons to separator lines:First Header | Second Header | Third Header:----------- | :-----------: | -----------:Left         | Center        | RightLeft         | Center        | RightSpecify alignment for each column by adding colons to separator lines:|First Header | Second Header | Third Header||:----------- | :-----------: | -----------:||Left         | Center        |     Right   ||Left         | Center        | Right         |### Shortcuts#### View* 显示预览: Shift + Cmd + I* 显示数字统计: Shift + Cmd + W* 窗口半透明: Shift + Cmd + T* 窗口显示在最前: Shift + Cmd + F* 编辑窗口和预览窗口大小为 1/1 : Cmd + 0* 编辑窗口和预览窗口大小为 3/1: Cmd + +* 编辑窗口和预览窗口大小为 1/3: Cmd + -* 编辑窗口旋转: Cmd + L* 全屏显示: Control + Cmd + F* 查找关键字 :Cmd + F#### Actions* Copy HTML: Option + Cmd + C )* 加粗选中文本, Cmd + B* 斜体: Select text, Cmd + I* 高亮选中文本, Cmd + K* 选中文本添加删除线, Cmd + U* 选中文本添加链接, Control + Shift + L* 选中文本设置图片地址, Control + Shift + I* 选中光标位置单词: Control + Option + W* Select Line: Shift + Cmd + L* Select All: Cmd + A* Deselect All: Cmd + D* Convert to Uppercase: Select text, Control + U* Convert to Lowercase: Select text, Control + Shift + U* Convert to Titlecase: Select text, Control + Option + U* Convert to List: Select lines, Control + L* Convert to Blockquote: Select lines, Control + Q* Convert to H1: Cmd + 1* Convert to H2: Cmd + 2* Convert to H3: Cmd + 3* Convert to H4: Cmd + 4* Convert to H5: Cmd + 5* Convert to H6: Cmd + 6* Convert Spaces to Tabs: Control + [* Convert Tabs to Spaces: Control + ]* Insert Current Date: Control + Shift + 1* Insert Current Time: Control + Shift + 2* Insert entity <: Control + Shift + ,* Insert entity >: Control + Shift + .* Insert entity &: Control + Shift + 7* Insert entity Space: Control + Shift + Space* Insert Scriptogr.am Header: Control + Shift + G* Shift Line Left: Select lines, Cmd + [* Shift Line Right: Select lines, Cmd + ]* New Line: Cmd + Return* Comment: Cmd + /* Hard Linebreak: Control + Return##### ###### ##### #### ### #### ### ## # #### Edit* Auto complete current word: Esc* Find: Cmd + F* Close find bar: Esc#### Post* Post on Scriptogr.am: Control + Shift + S* Post on Tumblr: Control + Shift + T#### Export* Export HTML: Option + Cmd + E* Export PDF:  Option + Cmd + P### And more?Don't forget to check Preferences, lots of useful options are there.Follow [@Mou](https://twitter.com/mou) on Twitter for the latest news.For feedback, use the menu `Help` - `Send Feedback`<h4 id="step1">第一节</h4>Don't forget to check Preferences, lots of useful options are there.Follow [@Mou](https://twitter.com/mou) on Twitter for the latest news.For feedback, use the menu `Help` - `Send Feedback`<h4 id="step2">第二节</h4>Don't forget to check Preferences, lots of useful options are there.Follow [@Mou](https://twitter.com/mou) on Twitter for the latest news.For feedback, use the menu `Help` - `Send Feedback`<h4 id="step3">第三节</h4>Don't forget to check Preferences, lots of useful options are there.Follow [@Mou](https://twitter.com/mou) on Twitter for the latest news.For feedback, use the menu `Help` - `Send Feedback`<h4 id="step4">第四节</h4>Don't forget to check Preferences, lots of useful options are there.Follow [@Mou](https://twitter.com/mou) on Twitter for the latest news.For feedback, use the menu `Help` - `Send Feedback`<h4 id="step5">第五节</h4>Don't forget to check Preferences, lots of useful options are there.Follow [@Mou](https://twitter.com/mou) on Twitter for the latest news.For feedback, use the menu `Help` - `Send Feedback`<h4 id="step6">第六节</h4>Don't forget to check Preferences, lots of useful options are there.Follow [@Mou](https://twitter.com/mou) on Twitter for the latest news.For feedback, use the menu `Help` - `Send Feedback`<h4 id="step7">第七节</h4>Don't forget to check Preferences, lots of useful options are there.Follow [@Mou](https://twitter.com/mou) on Twitter for the latest news.For feedback, use the menu `Help` - `Send Feedback`
0 0
原创粉丝点击