Recently I have hit upon a corner case which (I guess) wasnt probably thought off. If you have bullet list item like so:

```{org}
- 11. and 12. 09. meeting
```

converting to pandoc AST yields (ran in Try pandoc):

```{native}
[BulletList [[OrderedList (1,DefaultStyle,DefaultDelim) [[Plain [Str "and",Space,Str "12.",Space,Str "09.",Space,Str "meeting"]]]]]]
```

removing first number.

Running this:

```{org}
- 11. 09. meeting
```

removes even more:

```{native}
[BulletList [[OrderedList (1,DefaultStyle,DefaultDelim) [[OrderedList (1,DefaultStyle,DefaultDelim) [[Plain [Str "meeting"]]]]]]]]
```

Meaning removes all numbers, whitespace, periods until alphabetic letters.

Markdown conversion acts a little differently -- anything that seems as a start of ordered list is interpreted as such:

```{md}
- 11. 09. meeting
```

produces:

```{native}
[BulletList [[OrderedList (11,Decimal,Period) [[OrderedList (9,Decimal,Period) [[Plain [Str "meeting"]]]]]]]]
```

and

```{md}
- 11. and 12. 09. meeting
```

produces:

```{native}
[BulletList [[OrderedList (11,Decimal,Period) [[Plain [Str "and",Space,Str "12.",Space,Str "09.",Space,Str "meeting"]]]]]]
```

I guess that pandoc is making a pretty sensible assumption that all those numbers ending with period are starting new ordered list from different number than 1. But that breaks when using dates in start of a bullet list item.

As far as I know pandoc doesnt have a "date" element, and I also think it doesnt need one.

As proposed solution I think that another check in readers should be made that all text after bullet mark should be considered regular text, until a linebreak; or 2 linebreaks with text starting in column 2 (for items spanning more than one paragraph).

I have hit upon this when converting Org mode to docx, in where the first number is actually left off totally, so:

```{org}
- 11. and 12. 09. meeting
```

results in:

```{docx}
- and 12. 09. meeting
```

Which in my opinion is bug in all instances. If it would render ordered list in bullet list (as it should with):

```{native}
[BulletList [[OrderedList (11,Decimal,Period) [[Plain [Str "and",Space,Str "12.",Space,Str "09.",Space,Str "meeting"]]]]]]
```

it would be easier to notice, at least.

Can this corner case be resolved better? Should I make this a github issue?

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/35cb746c-1ee8-4fd4-b7fb-753caa8c5e1dn%40googlegroups.com.