Giter VIP home page Giter VIP logo

markdown_tutorial's Introduction

Markdown Tutorial

This is used to get familiar with github and markdown

1. 标题

一级标题

二级标题

三级标题

四级标题

五级标题
六级标题

一级标题的第二种办法

二级标题的第二种办法

2. 字体

字体加粗 _字词加粗

斜体 斜体

粗斜体 粗斜体

下划线

删除线

脚注 1

3. 段落及区块引用

3-1. 换行

段落的换行是两个空格加一个回车
比如这样 也可以用一个空行来表示

比如这样

3-2. 分隔线






3-3. 列表

无序列表使用*,+,—作为列表标记

  • 第一项
  • 第二项
  • 第三项

有序列表 数字加.

  1. 第一项
  2. 第二项
  3. 第三项

列表嵌套

  1. 第一项
    • 嵌套

3-4. 区块

这段文字将被高亮显示
每行前面都要有>

第二层嵌套

区块中使用列表

  1. 第一项
  • 第二项
  • 列表中使用区块

    前面要有四个空格缩进

  • 第二项

3-5. 代码块

printf() 函数

代码区块 用

“```”之后可以指定一种语言,也可以省略
printf()
printf()
printf()

包裹

4. 插入链接或图片

4-1. 网址链接

连接名称 或者
<链接地址> http://www.baidu.com

点击跳转至百度

高级链接
这个链接用 脚注1 作为网址变量Baidu

4-2. 图片

属性文字

图片

5. 列表

Markdown 制作表格使用 | 来分隔不同的单元格,使用 - 来分隔表头和其他行。

表头 表头
单元格 单元格
单元格 单元格

对齐方式

左对齐 右对齐 居中对齐
单元格 单元格 单元格
单元格 单元格 单元格

6. 目录

6-1. 自动生成目录

TOC: Table of Content,自动列出全部标题 用法:[toc] 只需要在恰当的位置添加 [TOC] 符号,凡是以 # 定义的标题都会被编排到目录中。
如果想要在你的 TOC 中排除一个标题,请在你的标题 后面 添加 {ignore=true} 即可
* 部分平台支持

6-2. 手动生成目录

[标题](\#标题链接)

标题链接格式为: 一个# + 被链接标题
标题链接中不能出现大写字母,大写字母用小写字母代替
标题链接中不能出现空格 ,空格 用-代替,多个空格也使用一个-代替。(Markdown中多空格显示一个空格)
目录排布由有序列表或无序列表控制

7. 高级技巧

7-1. 转义

转义符为反斜杠 \

7-2. 公式

$f(x)=sin(x)$

7-3. Markdown支持HTML元素

<kbd> <b> <i> <em> <sup> <sub> <br>等
使用 Ctrl+Alt+Del 重启电脑
hbd:格式化文本
b:粗体
i:斜体
下划线 s:删除线
em: 强调文本
subsup:上标
subsub:下标

行标签

& nbsp: 空格;& emsp:&emsp空格  br
br: 换行
mark:标记

big: 大号文字
small: 小号文字

Footnotes

  1. 注意要空一行

markdown_tutorial's People

Contributors

wangjiayue0303 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.