博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Markdown syntax guide and writing on MWeb
阅读量:6328 次
发布时间:2019-06-22

本文共 5073 字,大约阅读时间需要 16 分钟。

Philosophy

Markdown is intended to be as easy-to-read and easy-to-write as is feasible.

Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it's been marked up with tags or formatting instructions.
Markdown's syntax is intended for one purpose: to be used as a format for writing for the web.

Notice

You can use CMD + R to preview the result.

Headers

Example:

# This is an `

` tag## This is an `

` tag###### This is an `

` tag

Result:

This is an <h1> tag

This is an <h2> tag

This is an <h6> tag

Emphasis

Example:

*This text will be italic*_This will also be italic_**This text will be bold**__This will also be bold__*You **can** combine them*

Shortcuts: CMD + UCMD + ICMD + B

Result:

This text will be italic

This will also be italic

This text will be bold

This will also be bold

*You can combine them*

Newlines

End a line with two or more spaces + enter.

Just typing enter to newline,please set:Preferences – Themes – Translate newlines to <br> tags enable ( default is enable )

Lists

Unordered

Example:

* Item 1 unordered list `* + SPACE`* Item 2    * Item 2a unordered list `TAB + * + SPACE`    * Item 2b

Shortcuts: Option + U

Result:

  • Item 1 unordered list * + SPACE
  • Item 2
    • Item 2a unordered list TAB + * + SPACE
    • Item 2b

Ordered

Example:

1. Item 1 ordered list `Number + . + SPACE`2. Item 2 3. Item 3    1. Item 3a ordered list `TAB + Number + . + SPACE`    2. Item 3b

Result:

  1. Item 1 ordered list Number + . + SPACE
  2. Item 2
  3. Item 3
    1. Item 3a ordered list TAB + Number + . + SPACE
    2. Item 3b

Task lists

Example:

- [ ] task one not finish `- + SPACE + [ ]`- [x] task two finished `- + SPACE + [x]`

Result:

  •  task one not finish - + SPACE + [ ]
  •  task two finished - + SPACE + [x]

Images

Example:

![GitHub set up](https://help.github.com/assets/images/site/set-up-git.gif)Format: ![Alt Text](url)

Shortcuts: Control + Shift + I

The Library's document support drag & drop or CMD + V paste or CMD + Option + I to insert the pictrue.
Result:

GitHub set up

Links

Example:

email 
[GitHub](http://github.com)autolink

Shortcuts: Control + Shift + L

The Library's document support drag & drop or CMD + Option + I to insert attachment.
Result:

An email  link.

Automatic linking for URLs
Any URL (like ) will be automatically converted into a clickable link.

Blockquotes

Example:

As Kanye West said:> We're living the future so> the present is our past.

Shortcuts: CMD + Shift + B

Result:

As Kanye West said:

We're living the future so

the present is our past.

Inline code

Example:

I think you should use an`
` `code` element here instead.

Shortcuts: CMD + K

Result:

I think you should use an

<addr> code element here instead.

Multi-line code

Example:

```jsfunction fancyAlert(arg) {  if(arg) {    $.facebox({div:'#foo'})  }}```

Shortcuts: CMD + Shift + K

Result:

function fancyAlert(arg) {  if(arg) {    $.facebox({div:'#foo'})  }}

Sequence and Flow chart

Example:

```sequence张三->李四: 嘿,小四儿, 写博客了没?Note right of 李四: 李四愣了一下,说:李四-->张三: 忙得吐血,哪有时间写。``````flowst=>start: 开始e=>end: 结束op=>operation: 我的操作cond=>condition: 确认?st->op->condcond(yes)->econd(no)->op```

Result: ( Please enable Preferences – Themes – Enable sequence & flow chart, default is enable. )

张三->李四: 嘿,小四儿, 写博客了没?Note right of 李四: 李四愣了一下,说:李四-->张三: 忙得吐血,哪有时间写。
st=>start: 开始e=>end: 结束op=>operation: 我的操作cond=>condition: 确认?st->op->condcond(yes)->econd(no)->op

More info: , 

Tables

Example:

First Header | Second Header------------ | -------------Content from cell 1 | Content from cell 2Content in the first column | Content in the second column

You can create tables by assembling a list of words and dividing them with hyphens – (for the first row), and then separating each column with a pipe |:

Result:

First Header Second Header
Content from cell 1 Content from cell 2
Content in the first column Content in the second column

Strikethrough

Example:

(like ~~this~~)

Result:

Any word wrapped with two tildes (like this) will appear crossed out.

Horizontal Rules

Following lines will produce a horizontal rule:

********- - -

Result:




MathJax

Use double US dollors sign pair for Block level Math formula, and one US dollor sign pair for Inline Level.

For example this is a Block level $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$ formula, and this is an inline Level $x = {-b \pm \sqrt{b^2-4ac} \over 2a}$ formula.\\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}{1+\frac{e^{-8\pi}} {1+\ldots} } } } \\]

Result:

For example this is a Block level \[x = {-b \pm \sqrt{b^2-4ac} \over 2a}\] formula, and this is an inline Level \(x = {-b \pm \sqrt{b^2-4ac} \over 2a}\) formula.

\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =

1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}} {1+\ldots} } } } \]

Footnote

Example:

This is a footnote:[^sample_footnote]

Result:

This is a footnote:

Comment And Read More..

Actions->Insert Read More Comment OR CMD + .

TOC

Example:

[TOC]

Result:


  1. footnote text detail… 

转载地址:http://edzoa.baihongyu.com/

你可能感兴趣的文章
java web学习-1
查看>>
用maven+springMVC创建一个项目
查看>>
linux设备驱动第四篇:以oops信息定位代码行为例谈驱动调试方法
查看>>
redis知识点整理
查看>>
Hello World
查看>>
Spring3全注解配置
查看>>
ThreadLocal真会内存泄露?
查看>>
IntelliJ IDEA
查看>>
低版本mybatis不能用PageHeper插件的时候用这个分页
查看>>
javaweb使用自定义id,快速编码与生成ID
查看>>
[leetcode] Add Two Numbers
查看>>
elasticsearch suggest 的几种使用-completion 的基本 使用
查看>>
04-【MongoDB入门教程】mongo命令行
查看>>
Hadoop HA元数据备份
查看>>
字符串与整数之间的转换
查看>>
断点传输HTTP和URL协议
查看>>
redis 数据类型详解 以及 redis适用场景场合
查看>>
mysql服务器的主从配置
查看>>
巧用AJAX技术,通过updatePanel控件实现局部刷新
查看>>
20140420技术交流活动总结
查看>>