美文网首页
简书Markdown格式梳理

简书Markdown格式梳理

作者: David_Peng | 来源:发表于2017-11-09 21:17 被阅读41次

标题

#标题:在需要显示为标题的文字之前加上‘#’

效果:

标题

加粗

**加粗字体**:在需要加斜体的字体两端加‘**’

效果:加粗字体

斜体

*斜体文字*:在需要加斜体的字体两端加‘*’

效果: 斜体文字

字体背景

`汽车` `飞机`:在需要加背景的字体两端加‘`’

效果:汽车 飞机

列表

1. 列表1:在需要显示为列表的文字之前加上‘1. ’,注意需要加个空格
- 列表1:在需要显示为列表的文字之前加上‘-  ’,注意需要加个空格

效果:

  1. 列表1
  • 列表1

链接

[跳转到百度](www.baidu.com):跳转到百度文字变为链接,点击跳转到www.baidu.com页面

效果:跳转到百度

图片

![图片描述](https://img.haomeiwen.com/i5013317/e7fc96d1546c356a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
效果: 图片描述

代码专用框

```javascript
  window.onload = function () {
    console.log('123')
  }
```

效果:

window.onload = function () {
  console.log('123')
}

引用背景框

>引用的文字:在需要引用的文字前加‘>’

效果:

引用的文字

有色背景框

使用有色背景框需要在的段落首行添加两个tab

表格

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

效果:

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

相关文章

网友评论

      本文标题:简书Markdown格式梳理

      本文链接:https://www.haomeiwen.com/subject/peimmxtx.html