markdown语法指南

来源:互联网 发布:shift js按键 编辑:程序博客网 时间:2024/06/01 09:14

原文:https://guides.github.com/features/mastering-markdown/

语法指南

这里有 markdown 语法的概述,您可以使用GitHub.com或您自己的文本文件中的任何地方。

# This is an <h1> tag## This is an <h2> tag###### This is an <h6> tag

重点

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

This text will be italic
This will also be italic

This text will be bold
This will also be bold

You can combine them

列表
无序

* Item 1* Item 2  * Item 2a  * Item 2b

有序

1. Item 12. Item 23. Item 3   * Item 3a   * Item 3b

图片

![GitHub Logo](/images/logo.png)Format: ![Alt Text](url)

链接

http://github.com - automatic![GitHub](http://github.com)

引用文字

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

内嵌代码

I think you should use an`<addr>` element here instead.

GitHub Flavored Markdown

GitHub.com使用其自己markdown语法的版本,提供了一套附加的实用功能,其中有许多更容易与GitHub.com的内容工作。

请注意,GitHub Flavored Markdown的一些特点只适用于描述和问题的意见和Pull请求。这些措施包括@mentions以及引用SHA-1哈希值,issues和pull requests。任务列表也是可用的在Gist comments和 in Gist Markdown 文件中。

语法高亮

下面是如何使用的语法高亮与GitHub Flavored Markdown的例子:

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

你也可以简单地缩进代码由四个空格:
function fancyAlert(arg) {
if(arg) {
$.facebox({div:’#foo’})
}
}
下面是Python代码没有语法高亮的例子:
def foo():
if not bar:
return True

任务列表

- [x] @mentions, #refs, [links](), **formatting**, and <del>tags</del> supported- [x] list syntax required (any unordered or ordered list supported)- [x] this is a complete item- [ ] this is an incomplete item
  • [x] @mentions, #refs, links, formatting, and tags supported
  • [x] list syntax required (any unordered or ordered list supported)
  • [x] this is a complete item
  • [ ] this is an incomplete item

你可以通过组装一个单词列表,并将它们分割带连字符 - 来创建表(对第一行),然后将每个列用管分离|:

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

将成为:

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

SHA参考
任何对于提交的SHA-1哈希值将会自动转换成一个链接提交到GitHub上。

16c999e8c71134401a78d4d46435517b2271d6acmojombo@16c999e8c71134401a78d4d46435517b2271d6acmojombo/github-flavored-markdown@16c999e8c71134401a78d4d46435517b2271d6ac

一个存储库中的问题参考

任何数字与issue或pull request 将被自动转换成一个链接。

#1mojombo#1mojombo/github-flavored-markdown#1

用户名@mentions

键入一个@符号,后跟一个用户名,将通知该人前来查看注释。这就是所谓的“@mention”,因为你提到某个人。您也可以@mention 团队在一个组织内部。

自动链接网址

任何URL(如http://www.github.com/)将被自动转换成可点击的链接。

删除线

任何词语被包裹,用两个代字符(如这个)将出现划掉。

表情符号

GitHub supports emoji! :sparkles: :camel: :boom:

要查看每一个我们支持图像的名单,检出样式表情。
check out

相关文章
GitHub Flavored Markdown

MarkDown

0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 壁纸贴的有起泡怎么办 pos机连接主机失败怎么办 无线pos机连接主机失败怎么办 水墨晕染模板用不了怎么办 申请入驻饿了么失败怎么办 天猫流量大淘宝怎么办 拼多多商家不退款怎么办 苹果手机开流量显示e怎么办 苹果手机有服务流量打不开怎么办 苹果七plus流量打不开怎么办 苹果手机突然打不开流量怎么办 天猫商家迟迟不发货怎么办 苹果7开不开机了怎么办 苹果机黑屏了开不起来怎么办 美团收银机连不上网怎么办 6s换电池后黑屏怎么办 苹果上的软件打不开也删不掉怎么办 苹果手机打开软件打不开怎么办 苹果电脑下载的软件打不开怎么办 苹果手机下载的软件都打不开怎么办 苹7果屏幕黑屏怎么办 苹果6s手机打不开怎么办 苹果ipad密码输入打不开怎么办 苹果平板黑屏了打不开怎么办 苹果6sp电影商城打不开怎么办 苹果6应用商城打不开怎么办 游戏下载好了安装不上怎么办 苹果5s应用商店不见了怎么办 id被停用手机白板打不开怎么办 苹果6s下载不了软件怎么办 苹果下载的软件打不开怎么办 苹果6s下不了app怎么办 苹果手机因为闪退打不开了怎么办 天猫方糖坏了怎么办 天猫魔盒的遥控器坏了怎么办 天猫盒子没声音怎么办 天猫魔盒播放声音很低怎么办 天猫魔盒3a卡顿怎么办 天猫网络机顶盒打不开了怎么办 天猫机顶盒遥控器丢了怎么办 天猫机顶盒没有遥控器怎么办