4

Possible Duplicate:
Code block is not properly formatted when placed immediately after a list item

When placing code directly after a list. The code is not recognized. See the example below.

- something

    some code

looks like this:

  • something

    some code

should look like this:

  • something
some code

marked as duplicate by balpha Jan 23 '13 at 9:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • This is a dupe, ill find it in a sec. – Ólafur Waage Nov 13 '09 at 13:10
  • no It's not. The other was about putting code into a list. This is about putting code after a list. The solution there was to put 8 spaces instead of 4 spaces before the code. 8 spaces make the code be part of the list. – johannes Nov 13 '09 at 13:14
  • agree, not quite a duplicate, but also something that can be tested at the babelmark.bobtfish.net – Jeff Atwood Nov 13 '09 at 13:50
6

Yes, if you absolutely, positively must have code RIGHT AFTER a bulleted list, then you need something between the two elements to seperate them. You can use an HTML comment or other non-printable element (say, a  ), like so.

  • item1
  • item2
 this is code
  • 1
    ... or indent it by 8 spaces. – Brad Gilbert Nov 13 '09 at 14:33

Not the answer you're looking for? Browse other questions tagged .