Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

If you want to start a list item with a block of code, rather than text, you need to add at least a space character after the bullet or number, then make two line breaks before starting to indent the code block with 8 spaces.

In the following examples, line breaks are denoted by the ↵ symbol.


  •   unordered
    
 - ↵
↵
        example

  1.   ordered
    
1. ↵
↵
        example

Also see this answerthis answer for a real-world example.

If you want to start a list item with a block of code, rather than text, you need to add at least a space character after the bullet or number, then make two line breaks before starting to indent the code block with 8 spaces.

In the following examples, line breaks are denoted by the ↵ symbol.


  •   unordered
    
 - ↵
↵
        example

  1.   ordered
    
1. ↵
↵
        example

Also see this answer for a real-world example.

If you want to start a list item with a block of code, rather than text, you need to add at least a space character after the bullet or number, then make two line breaks before starting to indent the code block with 8 spaces.

In the following examples, line breaks are denoted by the ↵ symbol.


  •   unordered
    
 - ↵
↵
        example

  1.   ordered
    
1. ↵
↵
        example

Also see this answer for a real-world example.

Post Made Community Wiki by animusonStaffMod
added 56 characters in body
Source Link

If you want to start a list item with a block of code, rather than text, you need to add at least a space character after the bullet or number, then make two line breaks before starting to indent the code block with 8 spaces.


 

Examples:In the following examples, line breaks are denoted by the ↵ symbol.

-

 
    unordered
  •   unordered
    
 - 

        example

  1.   ordered
    
1. 

        example

Or,Also see this answer for a real-world example.

If you want to start a list item with a block of code, rather than text, you need to add at least a space character after the bullet or number, then make two line breaks before starting to indent the code block with 8 spaces.


 

Examples:

-

    unordered
 - 

        example

  1.   ordered
    
1. 

        example

Or, see this answer for a real-world example.

If you want to start a list item with a block of code, rather than text, you need to add at least a space character after the bullet or number, then make two line breaks before starting to indent the code block with 8 spaces.

In the following examples, line breaks are denoted by the ↵ symbol.

 
  •   unordered
    
 - 

        example

  1.   ordered
    
1. 

        example

Also see this answer for a real-world example.

Source Link

If you want to start a list item with a block of code, rather than text, you need to add at least a space character after the bullet or number, then make two line breaks before starting to indent the code block with 8 spaces.


Examples:

-

    unordered
 - ↴
↴
        example

  1.   ordered
    
1. ↴
↴
        example

Or, see this answer for a real-world example.