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]|...
Community wiki
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 ...
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.
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 ...
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 ...
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 ...
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\...
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 ...
MachavityMod
- 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 ...
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 ...
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 ...
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.
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" ...
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 ...
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 GrayMod
- 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 ...
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%...
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,...
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 ...
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.
`\``
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 GrayMod
- 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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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):
&...
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`, ` ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
markdown × 380support × 141
bug × 132
markdown-rendering × 84
feature-request × 80
code-formatting × 61
discussion × 57
hyperlinks × 37
status-completed × 28
comments × 23
editor × 23
documentation × 18
formatting × 16
tables × 14
status-bydesign × 12
images × 12
edits × 11
syntax-highlighting × 11
design × 10
status-declined × 10
quality-filter × 9
stack-snippets × 7
help-center × 7
not-properly-formatted-as-code × 6
stack-overflow-for-teams × 5