Ask Your Question
1

Formatting code after a bullet doesn't work

asked Jan 28 '11

kcrisman gravatar image kcrisman
109 1 6

updated Jan 28 '11

Evgeny gravatar image Evgeny flag of Chile
6665 31 49 95
http://askbot.org/

This should work, but doesn't.

  • Something. Now I want code to demonstrate it.

    1+2+345+6

  • It didn't format even though I used the 101010 button (indenting).

Comments

Hi, thanks. Turns out it is an acknowledged bug in the markdown2 library. Hopefully the author will fix it soon. Evgeny (Jan 28 '11)

1 Answer

Sort by ยป oldest newest most voted
1
kcrisman has selected this answer as correct

answered Jan 28 '11

niles gravatar image niles
463 3 15

I think the problem is that the markup uses spaces to determine what should be part of the bulleted list, and what shouldn't. This is tricky when you also consider multiple paragraphs in the same bullet point. Here's some markup, and then a copy of the syntax that produced it:

  • item one is short
  • item two is long

    and consists of multiple paragraphs

  • this is another item

    this is another paragraph within the same item

and this is a paragraph after the bulleted list

  • another list
  • I'll add code here by using the <pre> tag:
    code_text_*

And here is the markup:

 * item one is short
 * item two is long

   and consists of multiple paragraphs
 * this is another item

   this is another paragraph within the same item

and this is a paragraph *after* the bulleted list

 * another list
 * I'll add code here by using the &lt;pre&gt; tag:
   <pre>code_text_*</pre>

Note that the pre tag doesn't get syntax hilighting, but works otherwise

link

Comments

It is very fortunate that this very ticket was open on the markdown2 library just last week and it was accepted http://code.google.com/p/python-markdown2/issues/detail?id=13 I'll watch the progress on that. Thanks. Evgeny (Jan 28 '11)
Great to know. I'd vote Evgeny's answer correct, but he didn't actually answer :) kcrisman (Jan 28 '11)
What's the status on this? It still doesn't work on ask.sagemath :( kcrisman (May 18 '11)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: Jan 28 '11

Seen: 58 times

Last updated: Jan 28 '11