Markdown使用教程
Posted universal
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Markdown使用教程相关的知识,希望对你有一定的参考价值。
目录
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
- first
- 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 imes mathbf{V}_2 = egin{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 press
Return` key will create a section for “Table of Contents”
Span Elements
Links
This is an example inline link.
This link has no title attribute.
Internal Links
This link()
Reference Links
This is an example reference-style link.
URLs
insert urls as links, wrapped by <
brackets>
.
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 o 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==
text?
以上是关于Markdown使用教程的主要内容,如果未能解决你的问题,请参考以下文章