pombreda / gitit

Automatically exported from code.google.com/p/gitit
0 stars 0 forks source link

Writing about E. coli leads to numbered lists all over the place #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make a wiki about E. coli (Escherichia coli)
2. Start sections with “E. coli”
3. Observer that the paragraphs have been turned into a numbered list with
one item, “5. ”

What is the expected output? What do you see instead?
I would like to be able to start sections with “E. coli”. Now, I have to
use a non-break space between “E.” and “coli”.

What version of the product are you using? On what operating system?
gitit 0.6.2 on Linux (Debian Lenny)

Please provide any additional information below.

Original issue reported on code.google.com by ehamb...@gmail.com on 29 Jan 2010 at 6:09

GoogleCodeExporter commented 9 years ago
Pandoc's markdown allows ordered lists to start with letters as well as 
numbers. It 
also pays attention to the starting letter, and it allows one-item lists.  
Because of 
this, starting a paragraph with a single letter followed by a period can 
trigger a 
list.  The fix is to escape the space:  E.\ coli (or, if you like, escape the 
.).

If it's showing up as '5.' rather than 'E.', there must be a problem with your 
css.  
If you look at the HTML, you should see <ol start="5" style="list-style-type: 
upper-
alpha;">.  I fixed this css problem a while back, so you might upgrade to the 
latest 
version of gitit.

Update:  It turns out you've uncovered a bug in pandoc. The pandoc user's guide 
says 
that if you start an ordered list with a capital letter and period, you need 
two 
spaces after the period.  The reason for this is to prevent the kind of 
unexpected 
behavior you encountered.  Apparently this doesn't work any more -- I'll look 
into 
it, but I'm going to open a separate bug report on the pandoc bug tracker and 
close 
this one.

http://code.google.com/p/pandoc/issues/detail?id=212

Original comment by fiddloso...@gmail.com on 29 Jan 2010 at 8:18