Ask Your Question
0

askbot has maybe parsing problems

asked 2013-02-07 18:56:45 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

Is this an error in the wiki parsing. When I indent a line by four spaces and have a linefeed between it and the text before it is rendered as code/preformatted. E.g.:

code
code
code

But after the first enumeration it is broken:

  1. Again, level one
  2. some things
  3. foo bar things

    for x in range(0, 3): print "We're on time %d" % (x)

This is the error I mean! How can I write code after an enumeration? Only solution: I have to write something above the code.

Example:

  1. aaa
  2. bbb
  3. ccc

This is a thing that I have to write, otherwise the following code isn’t formatted as code:

for x := 1 to 7 do
  writeln(x);

Is this fixable?

edit retag flag offensive close merge delete

Comments

Interesting... Askbot depends on markdown2 python lib for this, maybe it's a problem on that lib, I'll do some tests

Fitoria gravatar imageFitoria ( 2013-02-07 19:02:39 -0600 )edit

interesting.. I gave an answer to this post, but the answer is invisible, because i've removed the wiki check mark. however you need 8 spaces for your code to make it looking like a code

Toms gravatar imageToms ( 2013-02-08 03:20:13 -0600 )edit

ok, my answer is back.. after posting the above comment

Toms gravatar imageToms ( 2013-02-08 03:21:12 -0600 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2013-02-08 03:15:10 -0600

Toms gravatar image

I have had a similar question

Here is the solution (8 spaces):

  1. Again, level one
  2. some things
  3. foo bar things

    for x in range(0, 3):
    print "We're on time %d" % (x)
    
edit flag offensive delete link more

Comments

Thank you.

erik gravatar imageerik ( 2013-02-11 05:12:09 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-02-07 18:56:45 -0600

Seen: 104 times

Last updated: Feb 08 '13