Marked doesn't recognize code block after list
The following code results in a code block:
- Thing 1
- Thing 2
Example:
links[i].onclick = function() {
return !showPic(this);
}
The following code treats the code block as a line of text:
- Thing 1
-
Thing 2
links[i].onclick = function() {
return !showPic(this);
}
However, I see that Tender does it as well. Am I maybe misunderstanding the mark up?
Comments are currently closed for this discussion. You can start a new one.
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
Support Staff 1 Posted by Brett on 12 Aug, 2012 03:08 PM
Anything indented after a list is considered a paragraph inside of that list. You need an element between, such as a horizontal line or a paragraph. The next version of Marked handles code blocks _inside_ of lists, so you can double indent to make the code block part of the previous list item, but Markdown in general sees the code block as a continuation of the list item either way.
2 Posted by Andrew White on 12 Aug, 2012 03:24 PM
My mistake. Thanks for the prompt response!
Brett closed this discussion on 26 Aug, 2012 08:04 PM.