关于程序员:Markdown基本语法学习

4次阅读

共计 2124 个字符,预计需要花费 6 分钟才能阅读完成。

Markdown 根本语法

题目语法: 几个 #号代表几级题目 1- 6 级

Heading level 1

Heading level 2

Heading level 3

Heading level 4

Heading level 5
Heading level 6
Heading level 7

段落语法: 用空白行分隔段落

这是一段段落啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊

啊啊啊啊啊啊啊啊啊啊啊啊


换行语法:HTML 的
标签换行

说的发
的产生的


强调语法: 将文本设置为粗体或斜体来强调其重要性

粗体: 在单词或短语前后各增加两个星号或下划线, 举荐应用两个星号, 两头不能应用空格

咱们 好的
水电__费理解__了
说了实践上中央
受睡了哦

斜体: 在单词或短语前后各增加一个星号或下划线, 举荐应用一个星号, 两头不能应用空格

说的 打开 看看
啦啦啦等等
来咯练练手
是打_上来了_

粗体和斜体: 在单词或短语前后各增加三个星号或下划线, 举荐应用三个星号, 两头不能应用空格

This text is really important.
this text is ___really important___.
this text is __really important__.
this text is really important.
this is reallyveryimportant text.
this is really___very___important text.
this is reallyveryimportant text.


援用语法: 创立块援用: 在段落前加一个 > 符号

Dorothy followed her through many of the beautiful rooms in her castle.

援用 1

援用 2

引 1

引 1.1

引 1.1.1

The quarterly results look great!

  • aaaa
  • bbbb

    斜体 加粗 斜体加粗

    everything

    快点快点苦咖啡


列表语法:
能够将多个条目组织成有序或无序列表
有序列表 每个列表前加 1. 空格
无序列表 每个列表前加破折号 -, 星号 *, 加号 + 缩进一个或多个列表项可创立嵌套列表

  1. 1
  2. 2
  3. 3
  4. 4
  5. a

    1. bbbb
  6. b

    1. dddd
  7. c
  8. d

    1. ggg
  • aaaa
  • bbbb
  • cccc
  • wwww
  • qqqq
  • vvvvv
  • 222222
  • ddddd

    • lll
    • sss

      • jjj
      • aasdsa

        • bbbb
  1. aa
  2. bb

    1. b
    2. bb2
  3. cc
  4. first
  5. second

    ​ ddd

    ​ dfdfsdfdsf

  6. ssssss
  7. first

    ssssssssssss

  8. second
  • 111111

    sssssssssss

    ddddd

  • 222222

    • lllll

      • ooo
  1. aaaa

    <title>Test</title>
    <h3>
    sjjdfsjd
    </h3>

<html>

   <head>
       <title>Test</title>
   </head>


public class Test{}

  1. bbb

  1. ccc

    • Indented item
    • Indented item
  2. ddd

代码语法: 单词或短语示意为代码, 将其包裹在反引号 ` 中

type nano

user `code` in your Markdown file.

    public class A{}
public class A{}
public class B{}

分隔线语法: 要创立分隔线,请在独自一行上应用三个或多个星号 (***)、破折号 (---) 或下划线 (___),并且不能蕴含其余内容



_


链接语法: 链接文本放在中括号内,链接地址放在前面的括号中,链接 title 可选。

超链接 Markdown 语法代码:[超链接显示名](超链接地址 "超链接 title")
对应的 HTML 代码:<a href="超链接地址" title="超链接 title"> 超链接显示名 </a>

这是一个链接 Markdown 语法

这是百度的链接百度一下

这是一个链接 Markdown 语法

这是百度的链接百度一下

https://markdown.com.cn

https://www.baidu.com

<fake@example.com>

i love supporting the eff.

this is the Markdown Guide.

see the section on code.

  • hobbit-hole
  • hobbit-hole
  • hobbit-k

图片语法: 要增加图像,请应用感叹号 (!), 而后在方括号减少代替文本,图片链接放在圆括号里,括号里的链接后能够减少一个可选的图片题目文本。

插入图片 Markdown 语法代码:![图片 alt](图片链接 "图片 title")
对应的 HTML 代码:<img src="图片链接" alt="图片 alt" title="图片 title">


转义字符语法: 要显示本来用于格式化 Markdown 文档的字符,请在字符后面增加反斜杠字符 ()。

  • aaaaaaaaaaaa

* aaaaaaaaaa

©

at&t

AT&T

AT&T

4<5

4<5


内嵌 HTML 标签: 对于 Markdown 涵盖范畴之外的标签,都能够间接在文件外面用 HTML 自身。如需应用 HTML,不须要额定标注这是 HTML 或是 Markdown,只需 HTML 标签增加到 Markdown 文本中即可

This word is bold.This word is italic.

This is a regular paragraph.

Foo

This is another regular paragraph.

正文完
 0