Markup: Skip numbers in numbered (ordered) list

Created on 8 Apr 2014  路  9Comments  路  Source: github/markup

When asking several questions in single comment in a discussion, it is nice to number them so the answer can reference each question.

But when referencing questions in the answer, numbered lists do not allow skipping numbers. This forces to answer every single question (or at least to reference it).

Questions:

  1. How should I...?
  2. What's the best way to...?
  3. Is this the right...?

Answers:

1. I think that...
3. Yes!
  1. I think that...
  2. Yes!

Most helpful comment

For aesthetic purposes, you can also backslash escape the periods:

1\. wow
3\. oh my
  1. wow
  2. oh my

All 9 comments

This is part of the original Markdown standard, and not something we are likely to change/break: http://daringfireball.net/projects/markdown/syntax#list

I often do something like this when replying:

(1) Use non-markdown syntax in your reply
(2) It's not ideal, but it works
(3) yep

@bkeepers thanks, I'll stick with that until you guys can make a new version of the standard happen :smile:

鈥ntil you guys can make a new version of the standard happen

Oh man, don't tempt us. In all seriousness, we have talked about at least publishing a "GitHub Markdown" standard. We'll see. /cc @mdiep

@bkeepers that'd be really great! I can think of three extensions to the original standard from the top of my head:

  • #282 (this one)
  • #281 (which you already saw)
  • #208 (I'd contribute with some of that :icecream:)

For aesthetic purposes, you can also backslash escape the periods:

1\. wow
3\. oh my
  1. wow
  2. oh my

Nice, I didn't think about that!

@gjtorikian thanks, gonna give it a try.

Backslash escape all _the_ things!

Was this page helpful?
0 / 5 - 0 ratings