Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
GitCode
帮助文档
提交
36be3316
帮助文档
项目概览
GitCode
/
帮助文档
通知
1778
Star
578
Fork
457
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
44
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
89
Wiki
分析
仓库
DevOps
代码片段
项目成员
Pages
帮助文档
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
44
Issue
44
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
89
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
36be3316
编写于
9月 09, 2020
作者:
Miykael_xxm
🚴
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update markdown.md
上级
97a83440
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
28 addition
and
24 deletion
+28
-24
docs/user/markdown.md
docs/user/markdown.md
+28
-24
未找到文件。
docs/user/markdown.md
浏览文件 @
36be3316
...
@@ -238,7 +238,7 @@ language = "toml"
...
@@ -238,7 +238,7 @@ language = "toml"
}
}
}
}
;;;
;;;
```
```
通过向任何现有定界符添加说明符来支持其他语言, 例如:
通过向任何现有定界符添加说明符来支持其他语言, 例如:
...
@@ -411,7 +411,7 @@ Second section content.
...
@@ -411,7 +411,7 @@ Second section content.
该代码段将链接到 Wiki 根目录下的`documentation`页面:
该代码段将链接到 Wiki 根目录下的`documentation`页面:
```
markdown
```
[Link to Documentation](documentation)
[Link to Documentation](documentation)
```
```
...
@@ -421,7 +421,7 @@ Second section content.
...
@@ -421,7 +421,7 @@ Second section content.
如果下面的代码段放在`<your_wiki>/documentation/related`的页面上,它将链接到`<your_wiki>/documentation/file.md` :
如果下面的代码段放在`<your_wiki>/documentation/related`的页面上,它将链接到`<your_wiki>/documentation/file.md` :
```
markdown
```
[Link to File](file.md)
[Link to File](file.md)
```
```
...
@@ -431,25 +431,25 @@ Second section content.
...
@@ -431,25 +431,25 @@ Second section content.
如果此代码段放在`<your_wiki>/documentation/main`的页面上,它将链接到`<your_wiki>/documentation/related` :
如果此代码段放在`<your_wiki>/documentation/main`的页面上,它将链接到`<your_wiki>/documentation/related` :
```
markdown
```
[Link to Related Page](./related)
[Link to Related Page](./related)
```
```
如果此代码段放在`<your_wiki>/documentation/related/content`的页面上,它将链接到`<your_wiki>/documentation/main` :
如果此代码段放在`<your_wiki>/documentation/related/content`的页面上,它将链接到`<your_wiki>/documentation/main` :
```
markdown
```
[Link to Related Page](../main)
[Link to Related Page](../main)
```
```
如果此代码段放在`<your_wiki>/documentation/main`的页面上,它将链接到`<your_wiki>/documentation/related.md` :
如果此代码段放在`<your_wiki>/documentation/main`的页面上,它将链接到`<your_wiki>/documentation/related.md` :
```
markdown
```
[Link to Related Page](./related.md)
[Link to Related Page](./related.md)
```
```
如果此代码段放在`<your_wiki>/documentation/related/content`的页面上,它将链接到`<your_wiki>/documentation/main.md` :
如果此代码段放在`<your_wiki>/documentation/related/content`的页面上,它将链接到`<your_wiki>/documentation/main.md` :
```
markdown
```
[Link to Related Page](../main.md)
[Link to Related Page](../main.md)
```
```
...
@@ -459,13 +459,13 @@ Second section content.
...
@@ -459,13 +459,13 @@ Second section content.
该代码段链接到`<wiki_root>/documentation` :
该代码段链接到`<wiki_root>/documentation` :
```
markdown
```
[Link to Related Page](/documentation)
[Link to Related Page](/documentation)
```
```
该代码段链接到`<wiki_root>/miscellaneous.md` :
该代码段链接到`<wiki_root>/miscellaneous.md` :
```
markdown
```
[Link to Related Page](/miscellaneous.md)
[Link to Related Page](/miscellaneous.md)
```
```
...
@@ -481,7 +481,7 @@ Second section content.
...
@@ -481,7 +481,7 @@ Second section content.
块引号是突出显示信息(如边注)的简便方法. 它是通过以`>`开头的 blockquote 行来生成的:
块引号是突出显示信息(如边注)的简便方法. 它是通过以`>`开头的 blockquote 行来生成的:
```
markdown
```
> Blockquotes are very handy to emulate reply text.
> Blockquotes are very handy to emulate reply text.
> This line is part of the same quote.
> This line is part of the same quote.
Quote break.
Quote break.
...
@@ -507,7 +507,7 @@ you can quote that without having to manually prepend `>` to every line!
...
@@ -507,7 +507,7 @@ you can quote that without having to manually prepend `>` to every line!
您可以轻松突出显示应视为代码而非简单文本的任何内容,简单的内联代码很容易用单个反引号`\``突出显示:
您可以轻松突出显示应视为代码而非简单文本的任何内容,简单的内联代码很容易用单个反引号`\``突出显示:
```
markdown
```
Inline `
code
` has `
back-ticks around
` it.
Inline `
code
` has `
back-ticks around
` it.
```
```
...
@@ -515,38 +515,39 @@ Inline `code` has `back-ticks around` it.
...
@@ -515,38 +515,39 @@ Inline `code` has `back-ticks around` it.
同样,整个代码块可以用三个反引号( ````` ),三个波浪号( `~~~` )或缩进 4 个或更多的空格来围起来,以实现较大代码体的相似效果。
同样,整个代码块可以用三个反引号( ````` ),三个波浪号( `~~~` )或缩进 4 个或更多的空格来围起来,以实现较大代码体的相似效果。
```markdown
````markdwon
```python def function():
```python
def function():
#indenting works just fine in the fenced code block
#indenting works just fine in the fenced code block
s = "Python code"
s = "Python code"
print s
print s
``` Using 4 spaces
``` Using 4 spaces
is like using
is like using
3-backtick fences.
3-backtick fences.
```
```
```
markdown
```
~~~
~~~
Tildes are OK too.
Tildes are OK too.
~~~
~~~
```
```
`
上面的三个示例呈现为:
上面的三个示例呈现为:
```
markdown
```
def function():
def function():
#indenting works just fine in the fenced code block
#indenting works just fine in the fenced code block
s = "Python code"
s = "Python code"
print s
print s
```
```
```
markdown
```
Using 4 spaces
Using 4 spaces
is like using
is like using
3-backtick fences.
3-backtick fences.
```
```
```
markdown
```
Tildes are OK too.
Tildes are OK too.
```
```
...
@@ -559,15 +560,18 @@ GitLab 使用[Rouge Ruby 库](http://rouge.jneen.net/)在代码块中突出显
...
@@ -559,15 +560,18 @@ GitLab 使用[Rouge Ruby 库](http://rouge.jneen.net/)在代码块中突出显
代码块由带有三个反引号( ````` )或三个波浪号( `~~~` )的行围起来,并在第一个围栏的末尾标识了语言:
代码块由带有三个反引号( ````` )或三个波浪号( `~~~` )的行围起来,并在第一个围栏的末尾标识了语言:
```
`markdown
```
`markdown
```javascript var s = "JavaScript syntax highlighting";
```javascript
var s = "JavaScript syntax highlighting";
alert(s);
alert(s);
```
```
```
python def function():
```python
def function():
#indenting works just fine in the fenced code block
#indenting works just fine in the fenced code block
s = "Python syntax highlighting"
s = "Python syntax highlighting"
print s
print s
```
```
```
ruby require 'redcarpet'
```ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
puts markdown.to_html
```
```
...
@@ -579,7 +583,7 @@ But let's throw in a <b>tag</b>.
...
@@ -579,7 +583,7 @@ But let's throw in a <b>tag</b>.
上面的四个示例呈现为:
上面的四个示例呈现为:
```
```
var s = "JavaScript syntax highlighting";
var s = "JavaScript syntax highlighting";
alert(s);
alert(s);
```
```
...
@@ -647,7 +651,7 @@ do*this*and*do*that*and*another thing
...
@@ -647,7 +651,7 @@ do*this*and*do*that*and*another thing
无论标签名称如何,参考标签的相对顺序都决定了呈现的编号。
无论标签名称如何,参考标签的相对顺序都决定了呈现的编号。
参考标记可以使用字母和其他字符. 在解决
[
此错误
](
https://gitlab.com/gitlab-org/gitlab/-/issues/24423
)
之前,请避免在脚注标签名称中使用小写
`w`
或下划线(
`_`
)
.
参考标记可以使用字母和其他字符. 在解决[此错误](https://gitlab.com/gitlab-org/gitlab/-/issues/24423)之前,请避免在脚注标签名称中使用小写`w`或下划线( `_` )
。
```
```
A footnote reference tag looks like this: [^1]
A footnote reference tag looks like this: [^1]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录