学习markdown记录的一些笔记
ctrl+k v 预览
shift+enter 运行代码块
标题
这是 一级标题
这是 二级标题
三级标题
四级标题
五级标题
六级标题
这个标题有 1 个 id { #my_id}
这个标题有 2 个 classes {.class1 .class2}
强调
这会是 斜体 的文字
这会是 斜体 的文字—
这会是 粗体 的文字
这会是 粗体 的文字
你也 组合 这些符号这个文字将会被横线删除
列表
无序列表
- Item 1
- Item 2
- Item 2a
- Item 2b
有序列表
- Item 1
- Item 2
- Item 3
- Item 3a
- Item 3b
添加图片(第一个是链接第二个直接显示)
!口罩
Format:
链接
https://github.com - 自动生成!
Github
引用
正如 Kanye West 所说:
We’re living the future so
the present is our past.
分割线(记得中间要空格)
如下,三个或者更多的
连字符
星号
下划线
行内代码
我觉得你应该在这里使用 <addr>
才对。
代码块
1 | 你可以在你的代码上面和 |
语法高亮
你可以给你的代码块添加任何一种语言的语法高亮
例如,给代码添加ruby语言的语法高亮:
1 | require 'redcarpet' |
代码块class(MPE扩展的特性)
你可以给你的代码设置class。
例如,添加class1 class2 到一个代码块:
1 | function add(x,y){ |
代码行数
添加line-numbers class 就可以了。
1 | function add(x,y){ |
高亮代码行数
添加highlight
属性的方式来高亮代码行数
1 | ``` |
1 |
任务列表
- @mentions, #refs, links, formatting, and
tagssupported - list syntax required (any unordered or ordered list supported)
- this is a complete item
- this is an incomplete item
表格
First Header | Second Header |
---|---|
Content from cell 1 | Content from cell 2 |
Content in the first column | Content in the second column |
表情
:smile:
:fa-car:
上标
30^th^
下标
H2o
脚注
Content [^1]
[^1]: Hi! This is a foot note
缩略
_[HTML]: Hyper Text Markup Language
_[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
标记
==marked==
目录
[TOC]
导入外部文件
@import “当前文件中的路径”
设置图片
@import “1.jpg” {width=”300px” height=”200px” title=”图片的标题” alt=”我的 alt”}
引用在线文件
@import “https://raw.githubusercontent.com/shd101wyy/markdown-preview-enhanced/master/LICENSE.md“