Markdown教程


author: Andy Elizabeth
title: markdown教程
description: 最全的教程
typora-root-url:/User/Abner/Website/typora.io/

Markdown

markdown 式一种轻量级的语言,用来编辑纯文本。用它可以轻松排版出你想要的文本格式。可以用来写博客,写论文等。

块元素

段落和换行符

段落是一行或多行连续的文本。在markdown中,段落被两行或以上分隔开。但在很多编辑器中,你只需要一个回车就可以创建新的段落。

你可以使用Shift+Return创建一个单行换行符。如果你的编辑器不支持,那么你可以使用<br/>,或者仅仅在末尾敲击两个空格

标题

在markdown中,标题分六个等级,使用#区分。

# this is an h1
## this is an h2
###### this is an h6

块引用

> 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.



> This is another blockquote with one paragraph. There is three empty line to seperate two blockquote.

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.

This is another blockquote with one paragraph. There is three empty line to seperate two blockquote.

在你输入>后会生成代码块,嵌套代码块只需要连续输入>

列表

输入* list item 1,将会创建一个无序列表,*可以使用+-代替

  • list item 1
  • list item 2
  • list item 3

输入1. list item 1,将会创建一个有序列表

  1. list item 1
  2. list item 2
  3. list item 3

源码:

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

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

任务列表

[] 和 [x] 分别代表未完成和已经完成的列表。就像这样:

- [ ] a task list item
- [ ] list syntax required
- [ ] normal **formatting**, @mentions, #1234 refs
- [ ] incomplete
- [x] completed
  • a task list item
  • list syntax required
  • normal formatting, @mentions, #1234 refs
  • incomplete
  • completed

复选框是可以点击的。

数学块

你可以使用使用MathJax渲染Latex公式

你需要使用$$并创建return,会激发出数学表达的区域

$$
\mathbf{V}_1 \times \mathbf{V}_2 =  \begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
\frac{\partial X}{\partial u} &  \frac{\partial Y}{\partial u} & 0 
\\
\frac{\partial X}{\partial v} &  \frac{\partial Y}{\partial v} & 0 
\\
\end{vmatrix}
$$

V 1 × V 2 = ∣ i j k ∂ X ∂ u ∂ Y ∂ u 0 ∂ X ∂ v ∂ Y ∂ v 0 ∣ \mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\ \frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \\ \end{vmatrix} V1×V2

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值