链接和图片

链接

1
2
3
4
5
6
7
8
  链接
  [text](real path link)
  [text][reference link]


  图片
  ![text](real path link)
  ![text](reference link)

引用类型 reference link

用来简化输入,具体的链接,在文末或者某个地方说明即可

1
2
3
4
5
6
7
8
9
 Here's our logo (hover to see the title text):

 Inline-style: 
 ![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")

 Reference-style: 
 ![alt text][logo]

 [logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"

鼠标悬浮文本

在链接最后 的文字

1
  ![image text](http://hello "Hover Text")

文档内部跳转链接 internal link

  • 链接格式

    1
    
      [link_name](#where-to-jump)
  • anchor 锚的类型

    • headings

      1
      2
      3
      4
      5
      
      # head one
      
      [my-jump-to-head-one](#head-one)
      
      [my-jump-to-head-one](#head one)
      • 要么 heading 名称全写
      • 要么 heading 名称用 "-" hyphen 隔开
    • id 属性,全局调用

      1
      2
      3
      4
      5
      6
      7
      
      # head one <span id="myhead001"></span>
      
      # head two <a id="myhead002"></a>
      
      [my-jump-to-head-one](#myhead001)
      <a href="#myhead001">my-jump-to-head-one</a>
      <a href="#myhead002">my-jump-to-head-two</a>
      • 使用 html id 属性实现

强调内容

1
  hello `Lily and Lucy`

功能符号

  1. _
  2. 总结

    • "*" 和 "-" 功能类似
    • "_" 不可用于 list 列表

字体格式

1
2
3
4
5
6
7
  斜体:Emphasis, aka italics, with *asterisks* or _underscores_.

  黑体:Strong emphasis, aka bold, with **asterisks** or __underscores__.

  斜体、黑体混用:Combined emphasis with **asterisks and _underscores_**.

  中间划线:Strikethrough uses two tildes. ~~Scratch this.~~

换行

  • 留空一行
  • "…" 结尾

    1
    2
    3
    4
    5
    6
    
      Here's a line for us to start with.
    
      This line is separated from the one above by two newlines, so it will be a *separate paragraph*.
    
      This line is also a separate paragraph, but...
      This line is only separated by a single newline, so it's a separate line in the *same paragraph*.