First time here? Check out the FAQ!
0

askbot has maybe parsing problems

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?

updated 2013-02-07 18:56:45 -0600
This post is a wiki. Anyone with karma >100 is welcome to improve it.
edit flag offensive 0 remove flag 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's avatar Fitoria (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's avatar Toms (2013-02-08 03:20:13 -0600) edit

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

Toms's avatar Toms (2013-02-08 03:21:12 -0600) edit
add a comment see more comments

1 Answer

1

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)
    
Toms's avatar
767
Toms
answered 2013-02-08 03:15:10 -0600
edit flag offensive 0 remove flag delete link

Comments

Thank you.

erik's avatar erik (2013-02-11 05:12:09 -0600) edit
add a comment see more comments