请选择 进入手机版 | 继续访问电脑版

萝卜头IT论坛

了解更多
搜索
查看: 302|回复: 3
收起左侧

markdown测试

[复制链接]
发表于 2019-12-17 12:18:35 | 显示全部楼层 |阅读模式

] 本帖最后由 这个显卡不太冷 于 2019-12-17 12:49 编辑 [/i]

[md]# 换行

这是第一行。

  1. 回车换行

    测试无效

  2. 用代码块换行




  1. 使用 <br/>

    <br/><br/><br/>编辑器内测试有效

公式

$\Delta = \frac{-b\pm\sqrt{b^2-4ac}}{4a}$

回复

使用道具 举报

发表于 2019-12-17 12:28:53 | 显示全部楼层

Guide

这是一篇讲解如何正确使用 Markdown 的排版示例,学会这个很有必要,能让你的文章有更佳清晰的排版。

引用文本:Markdown is a text formatting syntax inspired

语法指导

普通内容

这段内容展示了在内容里面一些排版格式,比如:

  • 加粗 - **加粗**
  • 倾斜 - *倾斜*
  • 删除线 - ~~删除线~~
  • Code 标记 - `Code 标记`
  • 超级链接 - [超级链接](https://hacpai.com)
  • [email]username@gmail.com[/email] - [[email]username@gmail.com[/email]](mailto:username@gmail.com)

提及用户

[url=home.php?mod=space&uid=76177]@Vanessa[/url] 通过 @User 可以在内容中提及用户,被提及的用户将会收到系统通知。

NOTE:

  1. @用户名之后需要有一个空格
  2. 新手没有艾特的功能权限

表情符号 Emoji

支持大部分标准的表情符号,可使用输入法直接输入,也可手动输入字符格式。通过输入 : 触发自动完成,可在个人设置中设置常用表情

一些表情例子

:smile: :laughing: :dizzy_face: :sob: :cold_sweat: :sweat_smile: :cry: :triumph: :heart_eyes: :relieved:
+1: :-1: :100: :clap: :bell: :gift: :question: :bomb: :heart: :coffee: :cyclone: :bow: :kiss: :pray: :anger:

大标题 - Heading 3

你可以选择使用 H1 至 H6,使用 ##(N) 打头。建议帖子或回帖中的顶级标题使用 Heading 3,不要使用 1 或 2,因为 1 是系统站点级,2 是帖子标题级。

NOTE: 别忘了 # 后面需要有空格!

Heading 4

Heading 5
Heading 6

图片

![alt 文本](http://image-path.png)  
![alt 文本](http://image-path.png "图片 Title 值")  

支持复制粘贴直接上传。

代码块

普通

*emphasize*    **strong**  
_emphasize_    __strong__  
var a = 1  

语法高亮支持

如果在 ``` 后面跟随语言名称,可以有语法高亮的效果哦,比如:

演示 Go 代码高亮
package main  

import "fmt"  

func main() {  
 fmt.Println("Hello, 世界")  
}  
演示 Java 高亮
public class HelloWorld {  

 public static void main(String[] args) {  
 System.out.println("Hello World!");  
 }  

}  

Tip: 语言名称支持下面这些:ruby, python, js, html, erb, css, coffee, bash, json, yml, xml ...

有序、无序、任务列表

无序列表

  • Java
  • Spring
  • IoC
  • AOP
  • Go
  • gofmt
  • Wide
  • Node.js
  • Koa
  • Express

有序列表

  1. Node.js
    1.1. Express
    1.2. Koa
    1.3. Sails
  2. Go
    2.1. gofmt
    2.2. Wide
  3. Java
    3.1. Latke
    3.2. IDEA

任务列表

  • [x] 发布 Sym
  • [X] 发布 Solo
  • [ ] 预约牙医

表格

如果需要展示数据什么的,可以选择使用表格。

header 1 header 3
cell 1 cell 2
cell 3 cell 4
cell 5 cell 6

隐藏细节

<details>
<summary>这里是摘要部分。</summary>
这里是细节部分。
</details>

段落

空行可以将内容进行分段,便于阅读。(这是第一段)

使用空行在 Markdown 排版中相当重要。(这是第二段)

数学公式

多行公式块:

$$
\frac{1}{
\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{
\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {
1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}}{1+\cdots}}
}
}
$$

行内公式:

公式 $a^2 + b^2 = \color{red}c^2$ 是行内。

流程图

graph TB  
 c1-->a2  
 subgraph one  
 a1-->a2  
 end  
 subgraph two  
 b1-->b2  
 end  
 subgraph three  
 c1-->c2  
 end  

时序图

sequenceDiagram  
 Alice->>John: Hello John, how are you?  
 loop Every minute  
 John-->>Alice: Great!  
 end  

甘特图

gantt  
 title A Gantt Diagram  
 dateFormat  YYYY-MM-DD  
 section Section  
 A task           :a1, 2019-01-01, 30d  
 Another task     :after a1  , 20d  
 section Another  
 Task in sec      :2019-01-12  , 12d  
 another task      : 24d  

图表

{  
 "title": { "text": "最近 30 天" },  
 "tooltip": { "trigger": "axis", "axisPointer": { "lineStyle": { "width": 0 } } },  
 "legend": { "data": ["帖子", "用户", "回帖"] },  
 "xAxis": [{  
 "type": "category",  
 "boundaryGap": false,  
 "data": ["2019-05-08","2019-05-09","2019-05-10","2019-05-11","2019-05-12","2019-05-13","2019-05-14","2019-05-15","2019-05-16","2019-05-17","2019-05-18","2019-05-19","2019-05-20","2019-05-21","2019-05-22","2019-05-23","2019-05-24","2019-05-25","2019-05-26","2019-05-27","2019-05-28","2019-05-29","2019-05-30","2019-05-31","2019-06-01","2019-06-02","2019-06-03","2019-06-04","2019-06-05","2019-06-06","2019-06-07"],  
 "axisTick": { "show": false },  
 "axisLine": { "show": false }  
 }],  
 "yAxis": [{ "type": "value", "axisTick": { "show": false }, "axisLine": { "show": false }, "splitLine": { "lineStyle": { "color": "rgba(0, 0, 0, .38)", "type": "dashed" } } }],  
 "series": [  
 {  
 "name": "帖子", "type": "line", "smooth": true, "itemStyle": { "color": "#d23f31" }, "areaStyle": { "normal": {} }, "z": 3,  
 "data": ["18","14","22","9","7","18","10","12","13","16","6","9","15","15","12","15","8","14","9","10","29","22","14","22","9","10","15","9","9","15","0"]  
 },  
 {  
 "name": "用户", "type": "line", "smooth": true, "itemStyle": { "color": "#f1e05a" }, "areaStyle": { "normal": {} }, "z": 2,  
 "data": ["31","33","30","23","16","29","23","37","41","29","16","13","39","23","38","136","89","35","22","50","57","47","36","59","14","23","46","44","51","43","0"]  
 },  
 {  
 "name": "回帖", "type": "line", "smooth": true, "itemStyle": { "color": "#4285f4" }, "areaStyle": { "normal": {} }, "z": 1,  
 "data": ["35","42","73","15","43","58","55","35","46","87","36","15","44","76","130","73","50","20","21","54","48","73","60","89","26","27","70","63","55","37","0"]  
 }  
 ]  
}  

五线谱

X: 24  
T: Clouds Thicken  
C: Paul Rosen  
S: Copyright 2005, Paul Rosen  
M: 6/8  
L: 1/8  
Q: 3/8=116  
R: Creepy Jig  
K: Em  
|:"Em"EEE E2G|"C7"_B2A G2F|"Em"EEE E2G|\  
"C7"_B2A "B7"=B3|"Em"EEE E2G|  
"C7"_B2A G2F|"Em"GFE "D (Bm7)"F2D|\  
1"Em"E3-E3:|2"Em"E3-E2B|:"Em"e2e gfe|  
"G"g2ab3|"Em"gfeg2e|"D"fedB2A|"Em"e2e gfe|\  
"G"g2ab3|"Em"gfe"D"f2d|"Em"e3-e3:|  

多媒体

支持 v.qq.com,youtube.com,youku.com,coub.com,facebook.com/video,dailymotion.com,.mp4,.m4v,.ogg,.ogv,.webm,.mp3,.wav 链接解析

https://v.qq.com/x/cover/zf2z0xpqcculhcz/y0016tj0qvh.html

快捷键

我们的编辑器支持很多快捷键,具体请参考 键盘快捷键(或者按 "? ":smirk_cat:)

回复

使用道具 举报

 楼主| 发表于 2019-12-17 13:14:47 | 显示全部楼层

] 本帖最后由 这个显卡不太冷 于 2019-12-17 13:42 编辑 [/i]

[md]<br/>

>_<

<test/>

回复

使用道具 举报

发表于 2019-12-17 14:00:22 | 显示全部楼层

>_< <test>

回复

使用道具 举报

联系站长(Contact)|萝卜头IT论坛 ( 苏ICP备15050961号-1 )

GMT+8, 2020-9-24 06:32 , Processed in 0.222293 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表