Ask Your Question
2

Formatting code after a bullet doesn't work

asked 2011-01-28 09:33:25 -0500

kcrisman gravatar image

updated 2011-01-28 11:57:47 -0500

Evgeny gravatar image

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).

edit retag flag offensive close merge delete

Comments

Hi, thanks. Turns out it is an acknowledged bug in the markdown2 library. Hopefully the author will fix it soon.
Evgeny gravatar imageEvgeny ( 2011-01-28 13:12:25 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-01-28 11:15:57 -0500

niles gravatar image

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

edit flag offensive delete link more

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 gravatar imageEvgeny ( 2011-01-28 11:57:21 -0500 )edit
Great to know. I'd vote Evgeny's answer correct, but he didn't actually answer :)
kcrisman gravatar imagekcrisman ( 2011-01-28 20:54:39 -0500 )edit
What's the status on this? It still doesn't work on ask.sagemath :(
kcrisman gravatar imagekcrisman ( 2011-05-18 12:54:29 -0500 )edit

Updated link for "python-markdown2 issue 13", which moved to GitHub: https://github.com/trentm/python-markdown2/issues/13

slelievre gravatar imageslelievre ( 2016-03-06 06:04:32 -0500 )edit
1

@Evgeny, in which version of askbot is this available? Apparently not in 0.7.54 which is the version that ask-askbot is running as of 2016-03-07.

slelievre gravatar imageslelievre ( 2016-03-07 10:05:53 -0500 )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: 2011-01-28 09:33:25 -0500

Seen: 729 times

Last updated: Mar 07 '16