Skip to main content
95 votes

How can I create a table in a post?

Tables have been added to Stack Exchange as of December 2020. This is what you want: |id|name |email| |--| --- | --- | |1 | Sta |[email protected]| |2 |Danny|[email protected]| |3 |Elle |[email protected]|...
92 votes
Accepted

Should code be edited so that it is visible rather than being in one long line?

Yes, if you're improving the quality of the post, you should make the edit. Code on a single line is not very readable, so formatting it is an improvement. Make sure that when formatting the code you ...
cigien's user avatar
  • 59.7k
82 votes
Accepted

Did I not blockquote this correctly?

Your formatting was correct. You were quoting a article you linked, so the text should be formatted as such. You handled correctly by rolling the edit back.
Cerbrus's user avatar
  • 72.4k
73 votes
Accepted

Should we approve suggested edits that change ``` to four spaces code formatting or vice versa?

No. Edits like those should be rejected for not making a meaningful improvement or making the post easier to read. Edits that only change formatting are appropriate in very narrow circumstances, such ...
elixenide's user avatar
  • 44.7k
64 votes
Accepted

Should we disapprove of uploading images of tables when asking a question?

The rule of thumb should always be to favor whatever makes a question easiest to read and to answer. Even before the introduction of table markdown, images of tables were discouraged, for a number of ...
Mureinik's user avatar
  • 308k
56 votes
Accepted

Should I fix the formatting if it changes the meaning?

Stack Overflow has always done this (C# type specifiers in < > being interpreted as HTML tags outside of a code block), and I've always fixed them without hesitation. It's not about "don't ...
Caius Jard's user avatar
53 votes
Accepted

Why does this markdown not render as a list?

Add an extra blank line before your list. You have your list and the previous line like this: Worth noting: - My Workspace folder is `C:\Users\Jon\Aukitekt` - My project folder is `C:\Users\Jon\...
Kendra's user avatar
  • 768
45 votes

Should I fix the formatting if it changes the meaning?

Escape the first < Stream\<Integer> Or use backticks `Stream<Integer>` You're not changing the meaning because It's already there, but seen incorrectly as HTML It's in the code block ...
Machavity's user avatar
  • 31.4k
44 votes

Is there a way to put code blocks in block quotes?

Apparently this also works: > Some code: > > ```lang-js > const a = 0 > ``` Demo: Some code: const a = 0 Useful because the accepted answer doesn't work on Github or on my ...
Alex Harvey's user avatar
  • 15.2k
44 votes

Should code be edited so that it is visible rather than being in one long line?

In general, my answer would be "yes, but...", but in this case it would be "probably not." It depends on the purpose. The probably not: You used a very specific example from r ...
camille's user avatar
  • 16.7k
42 votes

Cannot figure why am getting "Your post appears to contain code that is not properly formatted"

Include pictures in post may cause this problem. If we insert picture using Image button in toolbar, or use shortcut key Ctrl+G, a script like below will be inserted to out post: [![enter image ...
zhm's user avatar
  • 3,591
39 votes
Accepted

Support CommonMark fenced code blocks

Code fences are now implemented. See Implement ```-style (fenced) Markdown code blocks on MSE for all the details.
balpha's user avatar
  • 50.7k
35 votes

How should links embedded into questions be formatted?

Fix the root problem: Accessibility According to Princeton's Meaningful Links article: Place the link on text that clearly and uniquely describes where the link goes. Where does "question" ...
Laurel's user avatar
  • 6,143
34 votes
Accepted

Why is the default for inserting an image like this [![enter image description here][1]][1]

[![enter image description here][1]][1] makes the image a link to itself. This makes it easy to simply click on it to open the image itself (useful for large images that appear small in the post). I ...
muru's user avatar
  • 4,846
30 votes

Should we disapprove of uploading images of tables when asking a question?

Since the introduction of the table markdown should people still be using images of tables instead of the markdown? No. Really, no one should have ever been using images of tables. Creating ASCII ...
Cody Gray's user avatar
  • 243k
29 votes

Should we approve suggested edits that change ``` to four spaces code formatting or vice versa?

No. These types of edits should be rejected, especially now that this type of formatting actually results in proper code formatting, and not half-broken formatting. These types of edits make ...
Zoe - Save the data dump's user avatar
26 votes
Accepted

Link with round brackets looks good in preview, but broken after submitting

You're missing a closing bracket: [Wolfram Alpha](https://www.wolframalpha.com/input/?i=nextprime((10%5E32)%5E2)) results in: Wolfram Alpha. Note the extra closing bracket at the end: [...](...((10%...
Nick is tired's user avatar
25 votes
Accepted

Is formatting that is designed solely to call attention to a question or answer allowed?

Your concerns are right, this is really excessive attention-grabbing. I can understand a header announcing that there's a new solution as of some year when all the existing answers are years old (heck,...
TylerH's user avatar
  • 21.1k
24 votes

Different types of quotes in answers

I have never a need to distinguish between those. If you are confused, then that's the problem with how answer is written, not with some missing style. You can use hyperlinks or caption to clearly ...
Sinatr's user avatar
  • 21.7k
23 votes
Accepted

Comment with inline code that is just a backtick

Looks like this can be done by backslash escaping a back tick inside two other back ticks. `\``
Mike M.'s user avatar
  • 39.1k
20 votes
Accepted

How to compose yellow background blockquote?

This is a standard blockquote. The Markdown syntax is to precede the text with a >. You can achieve the same effect in the editor by highlighting the block of text and clicking the quotation-mark ...
Cody Gray's user avatar
  • 243k
19 votes

Markdown for checkboxes

GitHub has extended the original Markdown specification; they added checkboxes, tables, code block fences (``` markers) and a few other features. Those are not part of the base specification, and thus ...
Martijn Pieters's user avatar
19 votes
Accepted

Heading, followed by code: Your post appears to contain code that is not properly formatted as code

It took me half an hour to understand, that it still need an empty line below the title (more accurate: in front of the code) *Some Title* -- code that was below the title *text explaining the ...
Skandix's user avatar
  • 1,984
18 votes

Link to a specific spot in a Stack Overflow question/answer

You can't, at least not using the formatting (Markdown or HTML) available in Q&A (or even tag wikis). Collective articles (example) automatically get header anchors. One alternative is to use ...
Laurel's user avatar
  • 6,143
16 votes

A Markdown table is detected incorrectly as a badly formatted code block

Thanks for reporting this. I had some fun poking around and here's what I found out: Whenever you save a post on stackoverflow.com, we run a bunch of quality checks. One of them is checking whether ...
Ham Vocke's user avatar
  • 2,972
16 votes

Is formatting that is designed solely to call attention to a question or answer allowed?

Headers should be used for structure only It's an accessibility concern! I just added an answer to Is using 'header' markdown okay in answers? that discusses the appropriate use of headers and text ...
Super Jade's user avatar
  • 6,116
16 votes

Should code be edited so that it is visible rather than being in one long line?

I agree with what cigien has said, but I want to focus on the concern of introducing errors while reformatting. I think that possibility is actually a significant risk, especially if you're doing ...
code11's user avatar
  • 2,231
15 votes

Is there a way to put code blocks in block quotes?

Here's another option: Since Markdown is a superset of HTML, you can use the <blockquote> element to wrap the code block (note the blank lines after the opening & before the closing tag): &...
Luatic's user avatar
  • 11k
15 votes

Code block delimited with <pre> and scroll bars

Yeah it is a bug. The reason is the leading whitespace of the <pre>: <pre> ^ Also interesting, backticks (with leading whitespace) have problems too: `test`, `<pre>`, ` test`, ` ...
Christian Gollhardt's user avatar
15 votes

Programmatically reading reproducible markdown data tables now results in Forbidden HTTPError

Why were changes made to Stack Overflow/Stack Exchange which break accessing markdown tables for reproducible data? Because you are not supposed to be able to do this now and it was never an ...
Karl Knechtel's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible