Markdown lists restart their numbering after code blocks
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:
- Stuff some code
- More stuff more code
- Even more stuff
I literally went into a doc that had this kind of code in it (http://help.cloudvox.com/faqs/getting-started/setup-for-perl), 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
<pre><code>
works.
So this
1. Stuff
<pre><code>some code</pre></code>
2. More stuff
<pre><code>more code</pre></code>
3. Even more stuff
</code>
Works:
- Stuff
some code
- More stuff
more code
- 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>
.
Discussions are closed to public comments.
If you need help with Tender please
start a new discussion.
Keyboard shortcuts
Generic
? | 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
1 Posted by rick on 11 Jun, 2009 10:22 AM
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 Posted by rick on 11 Jun, 2009 11:17 AM
Okay, now your comment makes no sense because it works! There's some strange linebreak issue now, hold on.