Markdown 列表生成器

Markdown 列表生成器

轻松创建和格式化 Markdown 列表。生成有序、无序和嵌套列表,支持正确的语法和自定义标记。

Try the Markdown List Generator

List Settings

0

Output

Understanding Markdown List Syntax

Markdown provides several ways to create lists in your documents. Understanding these options will help you create more effective documents and improve your Markdown workflow.

Unordered Lists

Unordered lists use bullet points and can be created using hyphens, asterisks, or plus signs. All of these markers will render the same bullet style in most Markdown processors.

markdown
- First item
- Second item
- Third item

* First item
* Second item
* Third item

+ First item
+ Second item
+ Third item

You can use any of these markers consistently throughout your list. Don't mix different markers in the same list.

Ordered Lists

Ordered lists use numbers followed by periods or parentheses. The actual numbers you use don't matter - the list will always render with sequential numbers starting from 1.

markdown
1. First item
2. Second item
3. Third item

1) First item
2) Second item
3) Third item

# This will still render as 1, 2, 3
8. First item
5. Second item
2. Third item

Nested Lists

You can create nested lists by indenting items with spaces or tabs. Most Markdown processors require at least 2 spaces or 1 tab for each level of indentation.

markdown
- First level item
  - Second level item
    - Third level item
- Another first level item

1. First level item
   1. Second level item
      1. Third level item
2. Another first level item

You can also mix ordered and unordered lists in nested structures.

markdown
- First level unordered item
  1. Second level ordered item
  2. Another second level ordered item
- Another first level unordered item

Adding Content Within List Items

To add paragraphs, code blocks, or other elements within a list item, indent them by at least 4 spaces or 1 tab.

markdown
- First item
- Second item

  This is a paragraph within the second item.

  ```
  This is a code block within the second item.
  ```

- Third item

需要了解更多Markdown语法细节?我们的全面速查表涵盖了所有元素的详细说明:

探索完整 Markdown 语法

Frequently Asked Questions

What are the different types of lists in Markdown?

Markdown supports two main types of lists:

  • Unordered lists (bullet points) created with -, *, or +
  • Ordered lists (numbered) created with numbers followed by a period or parenthesis, like 1. or 1)

Both types can be nested to create hierarchical structures.

How do I create nested lists in Markdown?

To create nested lists, indent the nested items with spaces or a tab. Most Markdown processors require at least 2 spaces or 1 tab for each level of indentation:

- First level
  - Second level
    - Third level

You can mix ordered and unordered lists in your nested structure.

Why is my Markdown list not rendering correctly?

Common issues with Markdown lists include:

  • Not having a blank line before the first list item
  • Inconsistent indentation for nested items
  • Mixing different bullet markers (-,*,+) in the same list
  • Not having enough spaces after the marker (you need at least one space)

Ensure you have consistent formatting and proper spacing throughout your list.

How do I create task lists or checklists in Markdown?

Task lists (also called checklists or to-do lists) are created using square brackets with a space or an x inside:

- [ ] Unchecked item
- [x] Checked item

Note that task lists are part of GitHub Flavored Markdown and may not be supported in all Markdown processors.

Does Markdown support definition lists?

Definition lists are not part of standard Markdown but are supported in some extended Markdown flavors like PHP Markdown Extra and MultiMarkdown. The syntax typically looks like:

Term
: Definition

Check your specific Markdown processor's documentation to see if definition lists are supported.