ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

Markdown学习中文简洁版

2021-06-18 14:01:26  阅读:173  来源: 互联网

标签:中文 Markdown footnote create markdown will 简洁 table aligned


 

 

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,footnote,create,markdown,will,简洁,table,aligned
来源: https://www.cnblogs.com/wangyt-1307/p/14899214.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有