Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • GitCode
  • 帮助文档
  • Wiki
    • Docs
    • User
  • markdown

帮
帮助文档
  • 项目概览

GitCode / 帮助文档

通知 1614
Star 124
Fork 140
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 166
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 23
  • DevOps
    • 流水线
    • 流水线任务
    • 计划
  • Wiki 89
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
帮
帮助文档
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 166
    • Issue 166
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 23
    • 合并请求 23
  • Pages
  • DevOps
    • DevOps
    • 流水线
    • 流水线任务
    • 计划
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 89
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 流水线任务
  • 提交
  • Issue看板

markdown · 变更

页面历史
Update markdown.md 编写于 9月 09, 2020 作者: Miykael_xxm's avatar Miykael_xxm
隐藏空白更改
内联 并排
Showing with 28 addition and 24 deletion
+28 -24
  • docs/user/markdown.md docs/user/markdown.md +28 -24
  • 未找到文件。
docs/user/markdown.md
View page @ 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]
......
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7