thanks, markdown. tharkdown.
[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]]