Markdown学习中文简洁版

Posted 开心大白

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Markdown学习中文简洁版相关的知识,希望对你有一定的参考价值。

 

 

Markdown学习中文简洁版

标题

说明

可以用“#”然后点击空格表示一级标题,以此类推,“##”“表示二级标题,最对有六级标题

Headers use 1-6 hash (#) characters at the start of the line, corresponding to header levels 1-6. For example:

# This is an H1

## This is an H2

###### This is an H6

In Typora, input ‘#’s followed by title content, and press Return key will create a header.

字体

在字体两端加两个星号表示加粗,加一个星号表示斜体

引用

Markdown uses email-style > characters for block quoting. They are presented as:

> This is a blockquote with two paragraphs. This is first paragraph.
>
> This is second pragraph. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

学习心的知识

分割线

用“---”(三条杠表示)或“***”回车后会出现分割线

图片

截图

用![名字](图片地址)来插入图片,也可以是网图

超链接

超链接

用来插入超链接

列表

有序

用 1.加空格 来使用

无序

用 -(减号)加空格来表示

nput * list item 1 will create an unordered list - the * symbol can be replace with + or -.

Input 1. list item 1 will create an ordered list - their markdown source code is as follows:

## un-ordered list
*   Red
*   Green
*   Blue

## ordered list
1. Red
2. Green
3.Blue

表格

姓名年龄学位
张三 3 博士

 

使用如下:

| 姓名 | 年龄 | 学位 |

| ---- | ---- | ---- |

| 张三 | 3 | 博士 |

Input | First Header | Second Header | and press the return key. This will create a table with two columns.

After a table is created, putting focus on that table will open up a toolbar for the table where you can resize, align, or delete the table. You can also use the context menu to copy and add/delete individual columns/rows.

The full syntax for tables is described below, but it is not necessary to know the full syntax in detail as the markdown source code for tables is generated automatically by Typora.

In markdown source code, they look like:

| First Header | Second Header |
| ------------- | ------------- |
| Content Cell | Content Cell |
| Content Cell | Content Cell |

You can also include inline Markdown such as links, bold, italics, or strikethrough in the table.

Finally, by including colons (:) within the header row, you can define text in that column to be left-aligned, right-aligned, or center-aligned:

| Left-Aligned | Center Aligned | Right Aligned |
| :------------ |:---------------:| -----:|
| col 3 is     | some wordy text | $1600 |
| col 2 is     | centered       |   $12 |
| zebra stripes | are neat       |   $1 |

A colon on the left-most side indicates a left-aligned column; a colon on the right-most side indicates a right-aligned column; a colon on both sides indicates a center-aligned column.

Footnotes

You can create footnotes like this[^footnote].

[^footnote]: Here is the *text* of the **footnote**.

will produce:

You can create footnotes like thisfootnote.

[footnote] Here is the text of the footnote.

Hover over the ‘footnote’ superscript to see content of the footnote.

代码

import java.swing.*;
```java

Typora only supports fences in GitHub Flavored Markdown. Original code blocks in markdown are not supported.

Using fences is easy: Input \\\\\\and pressreturn. Add an optional language identifier after \\\\\\ and we\'ll run it through syntax highlighting:

Here\'s an example:

```
function test() {
console.log("notice the blank line before this function?");
}
```

syntax highlighting:
```ruby
require \'redcarpet\'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

以上是关于Markdown学习中文简洁版的主要内容,如果未能解决你的问题,请参考以下文章

编写代码片段的更简洁的方法

js简洁代码片段

VS Code配置markdown代码片段

VS Code配置markdown代码片段

20个简洁的 JS 代码片段

20个简洁的 JS 代码片段