4
$\begingroup$

See here:


  • Item one
  • Item Two

    this is supposed to be a code comment

    import bpy print(bpy.context.scene.name)

    1. this should not be indented I guess

  1. Item one
  2. Item Two

(add something here to fix code block interpretation)

import bpy print(bpy.context.scene.name) 

Am I overlooking something obvious in post formatting?

$\endgroup$
0

1 Answer 1

4
$\begingroup$

This is an ambiguity in the Markdown specification. See Code block is not properly formatted when placed immediately after a list item.

A quick and simple fix is to do as you've done and put a string of text there. A comment <!-- --> should do the job if you need to keep the post clean.

  • Item one
  • Item Two
# this is supposed to be a code comment import bpy print(bpy.context.scene.name) 
  1. this should not be indented I guess
$\endgroup$
1
  • 1
    $\begingroup$ Thanks for clarification! It's not allowed to edit non-wiki posts on meta sites, so can't check the markdown of your post, but not really needed. Will use a comment if needed! $\endgroup$ Commented Oct 31, 2013 at 23:10

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.