• day01


    一、Markdown的基本语法

    1.1 标签

    代码:

    # 一级标签
    ## 二级标签
    ### 三级标签
    #### 四级标签
    ##### 五级标签
    ###### 六级标签
    

    效果:

    一级标签

    二级标签

    三级标签

    四级标签

    五级标签
    六级标签

    1.2 加粗

    代码:

    **加粗字体**
    

    效果:

    加粗字体

    1.3 倾斜

    代码:

    *倾斜字体*
    

    效果:

    倾斜字体

    1.4 高亮

    代码:

    ==高亮字体==
    

    效果:

    高亮字体

    1.5 上标

    代码:

    x^2
    

    效果:

    x2

    1.6 下标

    代码:

    H~2~o
    

    效果:

    H2o

    1.7代码引用(>式)

    代码:

    >hello oldboy!
    

    效果:

    hello oldboy!

    1.8 代码引用(```式)

    代码:

    ​```python
    print('hello world')
    ​```
    

    效果:

    print('hello world')
    

    1.9 代码引用(`式)

    代码:

    `
    print('hello world')
    `
    

    效果:

    print('hello world')

    1.10 插入链接(链接显示)

    代码:

    <https://www.cnblogs.com/maqiaobin/>
    

    效果:

    https://www.cnblogs.com/maqiaobin/

    1.11插入链接(链接描述显示)

    代码:

    [baidu](https://www.baidu.com "baidu")
    

    效果:

    baidu

    1.12插入图片(图片路径)

    1.12.1绝对路径

    绝对路径:.md文本同目录下图片的名字,如image.jpg

    代码:

    ![image](image.jpg)
    

    效果:

    image

    1.12.2相对路径

    相对路径:图片在电脑中的路径地址,如D:Markdownimage

    代码:

    ![image](D:Markdownimage)
    

    效果:

    image

    1.13插入图片(链接)

    代码:

    ![数据类型总结-搞笑结束.jpg?x-oss-process=style/watermark](http://www.chenyoude.com/Python从入门到放弃/数据类型总结-搞笑结束.jpg?x-oss-process=style/watermark '描述信息')
    

    效果:

    image

    1.14有序列表

    代码:

    1. one
    2. two
    3. three
    

    效果:

    1. one
    2. two
    3. three

    1.15无序列表

    代码:

    * one
    * two
    * three
    

    效果:

    • one
    • two
    • three

    1.16分割线

    代码:

    ---
    

    效果:


    1.17表格

    代码:

    name|age|sex
    -:|:-:|:-
    tony|20|man
    cindy|19|woman
    

    效果:

    name age sex
    tony 20 man
    cindy 19 woman

    1.18数学公式(行内嵌)

    代码:

    内嵌数学公式$sum_{i=1}^{10}f(i)\,\,	ext{thanks}$
    

    效果:

    内嵌数学公式$sum_{i=1}^{10}f(i),, ext{thanks}$

    1.19数学公式(块状)

    代码:

    $$
    sum_{i=1}^{10}f(i)\,\,	ext{thanks}
    $$
    

    效果:
    $$
    sum_{i=1}^{10}f(i),, ext{thanks}
    $$

    二、总结

    以上是今天所学的Markdown的基本语法

  • 相关阅读:
    这些 Drawable 的小技巧,你都了解吗?
    Android 软键盘的显示和隐藏,这样操作就对了
    在 ReactNative 的 App 中,集成 Bugly 你会遇到的一些坑
    聊聊 Material Design 里,阴影的那些事儿!
    PAT 1069 1070 1071 1072
    PAT1021 Deepest Root
    关于素数:求不超过n的素数,素数的判定(Miller Rabin 测试)
    PAT《数据结构学习与实验指导》实验项目集 2-05 2-06 2-07 2-08
    LeetCode:Gas Station
    LeetCode:Candy
  • 原文地址:https://www.cnblogs.com/maqiaobin/p/11390577.html
Copyright © 2020-2023  润新知