超级简单的 Markdown
通用格式
标题
超级秘密 Markdown 技巧(他们*不想让你知道!)
Markdown是开发帖子的语言,它是一种超轻量级的语言,可以为纯文本增添一些活力。它包含一些易于记忆(且易于输入)的快捷键。如果您是第一次学习 Markdown(或者只是记不住每个快捷键的功能),请收藏此速查表,并在需要时随时查看。
通用格式
使文本变为斜体
...use _single underscores_ or *single asterisks*
使文本加粗
...use __double underscores__ or **double asterisks**
使文本变为粗体和斜体
...use __*asterisks in double underscores*__,
**_underscores in double asterisks_**,
_**double asterisks in underscores**_, or
*__double underscores in asterisks__*
添加inline code
...use `single backticks`
添加
a code
block
使用
```
triple
backticks
```
或者
indent
four
spaces
1234
添加
标题
各种各样的
尺寸
使用
# one
## or more
### octothorpes
要添加水平线(如上图所示),请在一行中写入三个或更多连字符:
---
- 创建
- 有序列表
- 件数
1. simply write
1. "1. " before
1. each item
- 创建
- 无序列表
- 件数
- simply write
- "- " before
- each item
- 创建子列表
- 通过缩进
- 四个空格
- 对于每个级别
- 四个空格
- 通过缩进
1. Create sublists
- by indenting
1. four spaces
- for each level
创建超链接
put the [link text in square braces](https://timecube.2enp.com/)
(followed by the URL in parentheses)
创建区块引用
> begin the quote with "> "
到
删除线文本
use ~~double~~ tildes
添加内联图像
Use the same syntax as for a hyperlink, but prepend a '!':

嘿,孩子,想要一些
超级秘密 Markdown 技巧(他们*不想让你知道!)
需要写文字 *、_ 等字符吗?
通过在它们前面加上反斜杠来转义它们:\*
,\_
需要在内联代码中放置反引号吗?
Use double-backticks `with backticks` inside
``Use double-backticks `with backticks` inside``
需要在代码块内放置三个反引号吗?
```
indent four spaces
and then add the backticks
```
``` 缩进四个空格 然后添加反引号 ```
需要将代码块放入列表中吗?
- 只要确保
-
缩进
four spaces
-
保持编号连续
1. 确保 1. 缩进 ``` 四 空格 ``` 1. 保持编号连续
需要将代码块放入块引用中吗?
你可能想做类似的事情
small bug on DEV.to -- first line is indented one space val x = 42 val y = 42 * 19
...只需确保每行以“>”开头
> 你可能想做类似的事情 > > DEV.to 上的小错误——第一行缩进了一个空格 > 值 x = 42 > 值 y = 42 * 19 > > ...只需确保每行以“>”开头
需要花哨的语法突出显示来打动你的朋友并吓唬你的敌人吗?
def foo (val bar: Int, baz: Double): String = { ... }
只需在首字母 ``` 后面加上编程语言的名称即可:
```scala
def foo (val bar: Int, baz: Double): String = { ... }
```
遇到任何 Markdown 难题需要帮助解决吗?对于纯文本格式语法新手,您有什么技巧或窍门吗?请在下方评论区留言告诉我!
* Markdown Illuminati,不要与Marky Mark Illuminati混淆
鏂囩珷鏉ユ簮锛�https://dev.to/awwsmm/super-simple-markdown-bae