码迷,mamicode.com
首页 > 其他好文 > 详细

Markdown使用教程

时间:2019-02-21 21:55:01      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:ref   text   rip   create   images   this   vma   ken   Matter   

A brief introduction to how to use markdown for Typora.

Block Elements

Paragraph and line breaks

press Enter to create a new paragraph

press Shift + Enter to create a single line break,to make other markdown parsers recognize your line break, you can leave tow whitespace at the end of the line,or insert

Headers

input ‘#‘ 1-6 header levels

Blockquotes

input ‘>‘ followed by quote contents a block quote is generated.

for example

Lists

Input * or + or - list item will create an un-ordered list

  • first
  • two

Input 1. list item will create an ordered list

  1. first
  2. two

Task List

input [ ] or [x] for task lists

  • [ ] a task list item

  • [ ] another task list item

(Fenced)Code Blocks

Input ``` and press return(enter)

public static void main() {
  System.out.println("Hello World!");
}
function hello() {
  console.log('Hello World!');
}

Math Blocks

Input $$ then press ‘Return‘ will trigger an input field which accept Tex/LaTex source.
$$
\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}
$$

Tables

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

First Header Second Header
Content Cell Content Cell
Content Cell Content Cell
Left-Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is centered $12
zebra stripes are neat $1

Footnotes

You can create footnotes like this1

Horizontal Rules

Input *** or —— on a blank line


YAML Front Matters

Table of Contents

Input `then pressReturn` key will create a section for “Table of Contents”

Span Elements

This is an example inline link.

This link has no title attribute.

This link()

This is an example reference-style link.

百度

百度

URLs

insert urls as links, wrapped by <brackets>.

xdmrpgy@163.com

Images

![Alt text](/path/to/img.jpg "Optional title")

技术图片

Emphasis

single asterisks

single underscores

*this text is surrounded by literal asterisks*

Strong

double asterisks

Code

Use the printf()function

Unlike a pre-formatted code block, a code span indicates code within a normal paragraph

Strikethrough

Mistaken text.

Underline

Underline

Emoji:happy:

Input emoji with syntax

:smile:

??

:cry:

??

Inline Math

$\lim_{x \to \infty} \exp(-x) = 0$

Subscript

To use this feature, first, please enable it in Preference Panel -> Markdown Tab. Then use ~ to wrap subscript content,for example:H~2~O,X~long?text~ /

Superscript

To use this feature, first, please enable it in Preference Panel -> Markdown Tab. Then use ^ to wrap superscript content, for example: x^2^

Highlight

To use this feature, first, please enable it in Preference Panel -> Markdown Tab. Then use == to wrap highlight content, for example: ==highlight==


  1. text?

Markdown使用教程

标签:ref   text   rip   create   images   this   vma   ken   Matter   

原文地址:https://www.cnblogs.com/universal/p/10415305.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!