Markdown Basic Syntax#
1. Headings: Make Your Content Hierarchical#
Use #
to create headings. Headings start with #
, and the number of #
indicates the level of the heading.
# Level 1 Heading
## Level 2 Heading
### Level 3 Heading
#### Level 4 Heading
The above code will render a set of clearly defined headings, making your article well-organized.
2. Paragraphs and Line Breaks: Natural and Smooth#
In Markdown, paragraphs are lines of text one after another. To create a new paragraph, simply leave a blank line between two lines of text.
3. Font Styles: Emphasize Your Text#
- Bold: Wrap text with two asterisks or underscores, like
**Bold**
or__Bold__
. - Italic: Wrap text with one asterisk or underscore, like
*Italic*
or_Italic_
. Strikethrough: Wrap text with two tildes, like~~Strikethrough~~
.
These simple markers can make your content more layered and highlight key points.
4. Lists: Neat and Organized#
- Unordered Lists: Start a line with
-
,*
, or+
followed by a space. - Ordered Lists: Start a line with a number followed by a period (
1.
,2.
).
Want to nest other content in a list? Just indent to achieve the nesting effect.
- Unordered list item 1
- Nested ordered list item 1
- Nested ordered list item 2
- Unordered list item 2
- Ordered list item 1
- Ordered list item 2
5. Links and Images: Enrich Your Content#
- Links: Create links using square brackets and parentheses
[Display Text](Link Address)
. - Images: Similar to links, just add
!
in front, like
.
Easily achieve rich media content display!
Due to the WeChat public account platform not supporting links other than public account articles, links from other platforms will display link colors but cannot be clicked.
For these links, please note to write them in plain text, or click the top left "Format -> Convert WeChat External Links to Bottom Reference" to enable references, so you can observe the link destination at the bottom.
6. Blockquotes: Quote Famous Sayings or Thought-Provoking Sentences#
Use >
to create a blockquote, just add it in front of the text. Want multiple layers of quotes? Just add another >
after the previous layer.
This is a quote
This is a nested quote
This makes your quotes more layered.
7. Code Blocks: Showcase Your Code#
- Inline Code: Wrap with backticks, like
code
. - Code Blocks: Wrap with three backticks and specify the language, like:
console.log("Hello, Doocs!");
Syntax highlighting makes your code more readable.
8. Horizontal Lines: Separate Content#
Create a horizontal line with three or more -
, *
, or _
.
Add visual separation to your content.
9. Tables: Clearly Display Data#
Markdown supports simple tables, using |
and -
to separate cells and headers.
Project Personnel | WeChat ID | |
---|---|---|
yanglbme | [email protected] | YLB0109 |
YangFong | [email protected] | yq2419731931 |
thinkasany | [email protected] | thinkasany |
Such tables make data presentation clearer!
Writing markup manually is too cumbersome? We provide a convenient way. Click "Edit -> Insert Table" at the top left to quickly render a table.
Advanced Markdown Techniques#
1. LaTeX Formulas: Perfectly Display Mathematical Expressions#
Markdown allows embedding LaTeX syntax to display mathematical formulas:
- Inline Formulas: Wrap the formula with
$
, like $E = mc^2$. - Block Formulas: Wrap the formula with
$$
, like:
This is a powerful tool for displaying complex mathematical expressions!
2. Mermaid Flowcharts: Visualize Processes#
Mermaid is a powerful visualization tool that can create flowcharts, sequence diagrams, and more in Markdown.
This method not only visually presents processes but also enhances the professionalism of the document.
For more usage, see: Mermaid User Guide.
Conclusion#
Markdown is a simple, powerful, and easy-to-master markup language. By learning the basic and advanced syntax, you can quickly create content and effectively convey information. Whether it's technical documentation, personal blogs, or project descriptions, Markdown is your reliable assistant. I hope this article helps you fully understand the potential of Markdown, making your writing richer and more colorful!
Now, pick up a Markdown editor and start creating! Explore the world of Markdown, and you'll find it far more exciting than you imagined!
Recommended Reading#
- Another 20k+ stars open-source project from Alibaba, congratulations to fastjson!
- Eliminate 90% of candidates with massive data interview questions from internet giants (with solutions + method summary)
- Useful! How does the long-awaited text block feature work in Java 13?
- 2019 GitHub open source contribution ranking freshly released! Microsoft and Google lead, Alibaba ranks in the top 12!
