Markdown lists restart their numbering after code blocks

danjdel's Avatar


08 Jun, 2009 06:24 PM

I'm updating some of my docs today. When I saved, all the numbering got messed up.

It used to be that:

1. Stuff
    some code
2. More stuff
    more code
3. Even more stuff

would be numbered correctly.

Now, it does this:

  1. Stuff some code
  2. More stuff more code
  3. Even more stuff

I literally went into a doc that had this kind of code in it (, changed nothing, saved it, and saw all the numbering get screwed up.

So clearly you guys have messed with the markdown in the last month or so and broken this.

One thing I have noticed is that using



So this

1. Stuff
<pre><code>some code</pre></code>
2. More stuff
<pre><code>more code</pre></code>
3. Even more stuff


  1. Stuff
    some code
  2. More stuff
    more code
  3. Even more stuff

Also, when doing that, you'll notice that the border of the code area doesn't extend all the way to the left margin. I'm guessing that's more a symptom of it being nested within the list than a cause.

Now, that works and all, but it's not really sufficient. One, because it's way uglier and requires a lot more typing, but more importantly because we have all of these docs already using the syntax that used to work, and if I ever make any change to any of those docs, it'll require me to change every instance of code in a list to use <pre><code>.

  1. 1 Posted by rick on 11 Jun, 2009 10:22 AM

    rick's Avatar

    Ah that was done because I didn't want to run the autolinker on the code parts. I'm working on tweaking the formatter now.

  2. 2 Posted by rick on 11 Jun, 2009 11:17 AM

    rick's Avatar

    Okay, now your comment makes no sense because it works! There's some strange linebreak issue now, hold on.

Discussions are closed to public comments.
If you need help with Tender please start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

05 Dec, 2019 01:11 AM
22 Nov, 2019 01:04 PM
14 Oct, 2019 04:05 AM
14 Oct, 2019 12:43 AM
21 Sep, 2019 02:33 PM