]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/enumerations_of_dates_not_formatted_correctly.mdwn
(no commit message)
[ikiwiki.git] / doc / bugs / enumerations_of_dates_not_formatted_correctly.mdwn
1 When an enumeration contains entries starting with ordinal numbers, e.g., for lists of meeting dates, ikiwiki turns them all into the 1st.
2
3 Testcase:
4
5 *The following lists should read: 1. January, 27. March, 99. November, 42. April*
6 **But instead it reads:**
7
8 * 1. January
9 * 27. March
10 * 99. November
11 * 42. April
12
13 > That's a consequence of Markdown syntax. The syntax for ordered lists
14 > (HTML `<ol>`) in Markdown is to use arbitrary numeric prefixes in that style,
15 > so your text gets parsed as:
16 >
17 >     <ul>
18 >         <li>
19 >             <ol>
20 >                 <li>January</li>
21 >             </ol>
22 >         </li>
23 >         ...
24 >
25 > You can avoid that interpretation by escaping the dot with a backslash
26 > (`1\. January`) like so:
27 >
28 > * 1\. January
29 > * 27\. March
30 >
31 > or by writing "1st January" and so on. --[[smcv]]
32
33 >> I think that this is a bug in Text::Markdown (and probably other
34 >> versions of markdown). The [markdown spec)(http://daringfireball.net/projects/markdown/syntax.text),
35 >> though unmaintained and bitrotted into near illegibility, seems to say
36 >> that list items can only be preceeded by whitespace:
37 >> 
38 >>> "List markers typically start at the left margin, but may be indented by
39 >>> up to three spaces."
40 >> 
41 >> So "* * * 1. 2. 3." should not be parsed as a deeply nested list.
42 >> 
43 >> Forwarded to [upsteam RT](https://rt.cpan.org/Ticket/Display.html?id=65116). [[done]] --[[Joey]]