Linked Questions

158
votes
10answers
8k views

Code block is not properly formatted when placed immediately after a list item [duplicate]

Consider the following piece of Markdown code: This is some regular text. >>> def factorial(n): ... return 1 if n < 2 else n * factorial(n - 1) ... * This is a list ...
2
votes
1answer
1k views

How can I write nested code on a nested list with markdown? [duplicate]

I need to write a nested code block on a sub element of a list. My list look like 1. element 1 1. element 2 1. element 3, this has subelements 1. sub element 1 1. sub element 2 this one ...
4
votes
1answer
260 views

Code after bullet list isn't rendered correctly [duplicate]

Possible Duplicate: How to nest code within a list using markdown If there is a list immediately followed by a code block the code block is not recognized as code (Even though there is a newline ...
3
votes
2answers
147 views

Code block display within an ordered list? [duplicate]

I was attempting to edit a post earlier, but couldn't get a code block to display within an ordered list. I've not found any reference to this directly and despite indenting and trying a few ...
1
vote
1answer
138 views

Can't show xml code? [duplicate]

Possible Duplicate: How to nest code within a list using markdown I'm trying to put XML code in this answer, but it's not displaying at all. I tried using the code formatter and then ctrl + k (...
4
votes
1answer
125 views

Code immediately following a list does not format properly [duplicate]

Formatting breaks if code follows a list: List item List item This is in a code block This does not work as expected However, it works if between the list and the code List item List item There ...
2
votes
2answers
76 views

Code Block not showing up within a list [duplicate]

Possible Duplicates: How do I include a code block right after a list without it turning into a blockquote? How to nest code within a list using markdown I edited this question, but even after ...
-5
votes
1answer
77 views

Single line code formatting after list not working [duplicate]

Possible Duplicate: How to nest code within a list using Markdown Markdown formatting bug with code blocks in lists In this answer the first line of code in the question is being displayed ...
0
votes
1answer
75 views

Why can't I format my code in this answer? [duplicate]

Possible Duplicate: How to nest code within a list using markdown https://stackoverflow.com/a/13169659/57135 I know how to format code, but can't get it to work in this answer. Not sure why?
0
votes
0answers
76 views

Code block can't handle DOCTYPE lines correctly [duplicate]

Possible Duplicate: Code block is not properly formatted when placed immediately after a list item How to nest code within a list using markdown Lines like <!DOCTYPE html PUBLIC "-//W3C//...
2
votes
0answers
60 views

Numbered list item 2 appears as 1 in my answer… what is causing it? [duplicate]

I have an answer on SO like this 1. step Some text 2. step Problem it looks like this step Some text step Why is it making 2 appear as 1? Link CSS two level menu - ...
1
vote
1answer
41 views

How to add “Code sample” under “Numbered list”? [duplicate]

I want to add Code sample under Numbered List but unfortunately I am not able to do so. Here is an example of what I want to achieve: Using Numbered List - This is my first point I want to add my ...
0
votes
0answers
49 views

There may be a little bug on Stack Overflow Markdown [duplicate]

When I'm editing a question on Stack Overflow, the list followed by code is not supported by Stack Overflow. I clicked code Multiple times, but it didn't work. The same is Meta. While the ...
1
vote
0answers
46 views

Problem with code formatting in numbered lists [duplicate]

Possible Duplicate: How to nest code within a list using markdown Is there any way to use SO's numbered list implementation to render this answer? I played with this for quite a while and couldn'...
0
votes
0answers
30 views

Code block is not visible after using HTML <ul> (or “-” before text if you prefer) [duplicate]

When answering/asking a question if you want to achieve a black dot before the text, you can either use "-" before your text or use: <ul> <li>some text</li> <ul/> So far ...

15 30 50 per page