# Ordered list detection has precedence over title detection

**URL:** <https://talk.commonmark.org/t/ordered-list-detection-has-precedence-over-title-detection/1251>\
**Category:** Spec\
**Tags:** release-1.0\
**Created:** [June 28, 2015, 3:09am UTC](https://talk.commonmark.org/t/ordered-list-detection-has-precedence-over-title-detection/1251 "2015-06-28T03:09:00Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![tremby](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/tremby/32/735_2.png) [@tremby](https://talk.commonmark.org/u/tremby)\
**Post date:** [February 1, 2016, 5:09am UTC](https://talk.commonmark.org/t/ordered-list-detection-has-precedence-over-title-detection/1251/21 "2016-02-01T05:09:27Z")

</div>

Just to show my face again:

The same client (who came across this issue some time ago and couldn’t figure out why the English looked fine while the German did not) just had the same issue again.

I’m not about to explain escaping characters to non-tech clients. I’ve instructed her to just use the `##` style instead, but I have the feeling she had just gotten comfortable with underlining with dashes. It’s a shame this isn’t more intuitive.

---

<div class="post-metadata">

**Author:** ![jgm](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/jgm/32/1360_2.png) [@jgm](https://talk.commonmark.org/u/jgm)\
**Post date:** [February 2, 2016, 11:23pm UTC](https://talk.commonmark.org/t/ordered-list-detection-has-precedence-over-title-detection/1251/22 "2016-02-02T23:23:18Z")

</div>

I agree that there are some good reasons to change something here.  
[BabelMark2](http://johnmacfarlane.net/babelmark2/?normalize=1&text=1.+Juli%0A------%0A%0A-+Event+1%0A-+Event+2%0A%0A) shows three interpretations of your original case:

1. ordered list, hrule (commonmarks, cheapskate, maruku)
2. ordered list with header in content (lunamark, parsedown, kramdown)
3. header with number in content (all the others)

I think 3 is the best interpretation. The question is just how to get the spec to produce it without making the rules complicated or hard to remember.  
I’ve already [got this on the list](https://talk.commonmark.org/tags/release-1.0) of things to figure out before a 1.0 release.

---

<div class="post-metadata">

**Author:** ![tremby](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/tremby/32/735_2.png) [@tremby](https://talk.commonmark.org/u/tremby)\
**Post date:** [February 2, 2016, 11:43pm UTC](https://talk.commonmark.org/t/ordered-list-detection-has-precedence-over-title-detection/1251/23 "2016-02-02T23:43:57Z")

</div>

Agreed. Great; thanks. I look forward to the resolution.

---

<div class="post-metadata">

**Author:** ![jgm](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/jgm/32/1360_2.png) [@jgm](https://talk.commonmark.org/u/jgm)\
**Post date:** [February 3, 2016, 4:56am UTC](https://talk.commonmark.org/t/ordered-list-detection-has-precedence-over-title-detection/1251/24 "2016-02-03T04:56:28Z")

</div>

It’s not easy to see how to modify the existing spec and parsing strategy to get (3).  
I will think about it, but I can’t promise that the resolution will go that way.

---

<div class="post-metadata">

**Author:** ![tremby](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/tremby/32/735_2.png) [@tremby](https://talk.commonmark.org/u/tremby)\
**Post date:** [February 3, 2016, 6:12am UTC](https://talk.commonmark.org/t/ordered-list-detection-has-precedence-over-title-detection/1251/25 "2016-02-03T06:12:04Z")

</div>

What about tin-pot’s suggestion above, from Jan 4 and 5? Do they not help in this regard?

---

<div class="post-metadata">

**Author:** ![jgm](https://cdn.commonmark.org/user_avatar/talk.commonmark.org/jgm/32/1360_2.png) [@jgm](https://talk.commonmark.org/u/jgm)\
**Post date:** [February 3, 2016, 6:56pm UTC](https://talk.commonmark.org/t/ordered-list-detection-has-precedence-over-title-detection/1251/26 "2016-02-03T18:56:40Z")

</div>

I think the suggestions were not taking into account that setext headers can be deeply nested. This adds a lot of complexity.

[Previous page](https://talk.commonmark.org/t/ordered-list-detection-has-precedence-over-title-detection/1251.md?page=1)
