Skip to main content
Rewrite to clarify, simplify and incorporate comments
Source Link
wjandrea
  • 14.4k
  • 12
  • 11

If you put a code block after a list, the code block isn't formatted properly:

  • Here

  • Is

  • A

  • Listbullet

    code block code block code block

How would oneYou can resolve this? (You may have to look at by indenting the markdown to seecode block 8 spaces, which nests it under the problem)bullet:


Answer:

  • Here

  • Is

  • A

  • Listbullet

      code block
      code block
      code block
    

Or put something invisible between them, like an HTML comment <!-- comment --> or a Markdown comment <% comment %>, which doesn't nest it:

  • Here
  • Is
  • A
  • Listbullet

<%%>

code block
code block
code block
  • Here

  • Is

  • A

  • List

    code block code block code block

How would one resolve this? (You may have to look at the markdown to see the problem)


Answer:

  • Here

  • Is

  • A

  • List

      code block
      code block
      code block
    

or

  • Here
  • Is
  • A
  • List

<%%>

code block
code block
code block

If you put a code block after a list, the code block isn't formatted properly:

  • bullet

    code block

You can resolve this by indenting the code block 8 spaces, which nests it under the bullet:

  • bullet

      code block
    

Or put something invisible between them, like an HTML comment <!-- comment --> or a Markdown comment <% comment %>, which doesn't nest it:

  • bullet

<%%>

code block
added 94 characters in body
Source Link
Tim
  • 33.3k
  • 17
  • 31
  • Here

  • Is

  • A

  • List

    code block code block code block

How would one resolve this? (You may have to look at the markdown to see the problem)


Answer:

  • Here

  • Is

  • A

  • List

      code block
      code block
      code block
    

or

  • Here
  • Is
  • A
  • List

<%%>

code block
code block
code block
  • Here

  • Is

  • A

  • List

    code block code block code block

How would one resolve this? (You may have to look at the markdown to see the problem)


Answer:

  • Here

  • Is

  • A

  • List

      code block
      code block
      code block
    
  • Here

  • Is

  • A

  • List

    code block code block code block

How would one resolve this? (You may have to look at the markdown to see the problem)


Answer:

  • Here

  • Is

  • A

  • List

      code block
      code block
      code block
    

or

  • Here
  • Is
  • A
  • List

<%%>

code block
code block
code block
added 114 characters in body
Source Link
Tim
  • 33.3k
  • 17
  • 31
  • Here

  • Is

  • A

  • List

    code block code block code block

How would one resolve this? (You may have to look at the markdown to see the problem)


Answer:

  • Here

  • Is

  • A

  • List

      code block
      code block
      code block
    
  • Here

  • Is

  • A

  • List

    code block code block code block

How would one resolve this? (You may have to look at the markdown to see the problem)

  • Here

  • Is

  • A

  • List

    code block code block code block

How would one resolve this? (You may have to look at the markdown to see the problem)


Answer:

  • Here

  • Is

  • A

  • List

      code block
      code block
      code block
    
Source Link
earthmeLon
  • 11.5k
  • 13
  • 4
Loading