Home > Article > CMS Tutorial > How to use markdown syntax in wordpress
Markdown is a simple markup language for formatting text. Markdown can be used directly in WordPress 5.0 and above. Users can also install a Markdown plugin or enable Markdown support using the classic editor, or manually write Markdown syntax in HTML view. Markdown syntax includes: title (use # plus numbers), bold (use *), italics (use), unordered list (use -, * or), ordered list (use numbers and dots), link (use [text ] (link address)), code block (use three backticks), strikethrough (use ~~), quote
Used in WordPress A guide to Markdown syntax
#What is Markdown?
Markdown is a lightweight markup language used to create formatted text that is easy to read and write and approximates plain text. Markdown syntax is mainly used for writing documents and blog posts.
Using Markdown in WordPress
WordPress provides multiple ways to use Markdown:
Markdown Syntax
The following is the Markdown syntax commonly used in WordPress:
Title
# and add numbers to represent different title levels. For example: ## Title 2
Bold and italic
**
tags Bold text. For example: **Bold text**
*
to mark italic text. For example: *Italic text*
List
Use hyphens (-), asterisks ( *) or plus sign ( ) to create an unordered list. For example:
Item 3
Use numbers and dots (1 .) Create an ordered list. For example:
Step 3
Link
[text](link address)
to create a link. For example: [WordPress](https://wordpress.org)
Code block
Use Three backticks (`
) create a code block. For example:
<code>echo 'Hello, world!';</code>
Other common syntax
~~Strikethrough text~~
> Quote text
| Column 1 | Column 2 | Column 3 |
Tip
The above is the detailed content of How to use markdown syntax in wordpress. For more information, please follow other related articles on the PHP Chinese website!