Questions tagged [markdown]

Markdown is a lightweight, plain-text, markup language. It is used across the entire Stack Exchange network for post formatting (Questions, answers, wikis, chat).

Filter by
Sorted by
Tagged with
642 votes
283 answers
87k views

Formatting Sandbox

Notes: Answers will occasionally be moved to the Sandbox archive when there are too many of them. When using them to report bugs, keep an eye on the post. You may also want to take a look at the ...
397 votes
1 answer
276k views

How do I format my code blocks?

How do I post text so that it is formatted as code? What do I need to do so that my code shows up properly — not escaped or removed — when posted? And how to get the correct syntax ...
541 votes
1 answer
280k views

What HTML tags are allowed on Stack Exchange sites?

Stack Exchange sites use Markdown for questions and answers. Per the Markdown specification, intermixing HTML and Markdown tags is allowed, but not all the HTML tags are allowed, to avoid XSS. Which ...
168 votes
9 answers
11k 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 ...
Stephan202's user avatar
  • 5,489
376 votes
11 answers
57k views

Syntax highlighting language hints [duplicate]

Do you think it would be worthwhile to provide hints as to what language to use for the syntax highlighting? Sometimes I find the highlighting on SQL or VB.NET answers is more distracting than ...
Rowland Shaw's user avatar
  • 7,323
586 votes
55 answers
63k views

We're switching to CommonMark

I’m Ham and I’m a developer on the Teams team here at Stack Overflow. Over the past few months, I’ve been heads down working on the way we turn Markdown into HTML when writing and editing posts across ...
Ham Vocke's user avatar
  • 11.6k
928 votes
25 answers
242k views

Is there Markdown to create tables? [duplicate]

It seems like a lot of people try to display tables in Stack Overflow questions, but don't do a very good job. Is there Markdown syntax that supports creating a proper table?
leora's user avatar
  • 10.8k
768 votes
41 answers
32k views

New Feature: Table Support

Update: I've just enabled this feature network-wide. All sites across Stack Exchange are now able to use tables. Thanks for all the feedback. We'll keep monitoring this question and we'll continue to ...
Ham Vocke's user avatar
  • 11.6k
317 votes
5 answers
146k views

How to nest code within a list using Markdown [duplicate]

Oftentimes, I want to include code samples in a list, for example: Item One Item Two, for example: private bool ItemTwo() { return this.IFeelLucky; } Item Three The problem is that there isn't a ...
32 votes
4 answers
5k views

Why should users have to press Return twice to insert new lines?

When I post a question and want to add a new line, I have to press Return two times, or else the next text will appear on the same line. Is this really supposed to behave this way? If so, why?
CodeOverload's user avatar
169 votes
11 answers
56k views

Add markdown support for hidden-until-you-click text (aka spoilers)

Use cases: Programming puzzles. This way the answer can be posted the same time as the question, eliminating doubt that no answer is possible for hard questions and proving that the question is not a ...
132 votes
5 answers
4k views

Inline Code Spans should not be used for emphasis, right?

When reviewing Suggested Edits on Stack Overflow, I often come across "fixed formatting" suggestions that use inline code spans to place emphasis on certain keywords, but isn't actual code. For ...
vcsjones's user avatar
  • 2,891
64 votes
3 answers
3k views

Is there some markup to post tags?

I am wondering because I was editing my profile and I though it would be nice to put the languages I know and stuff like tags. Is it possible to post a tag? If it's not, do you think it's possible to ...
BrunoLM's user avatar
  • 3,583
80 votes
3 answers
2k views

Markdown in chat fails for multi-line messages

We've come to rename Markdown to Letdown in the C++ chat room because it lets you down so often. I've now just found a pattern. It seems markdown fails for multi-line messages. That is, this Letdown ...
sbi's user avatar
  • 14.6k
178 votes
6 answers
111k views

Links to URLs containing parentheses

How do I add a link to a URL containing parentheses () (or "round brackets" by heathens)? For example: http://msdn.microsoft.com/en-us/library/aa752574(VS.85).aspx The parentheses around &...
324 votes
7 answers
47k views

LaTeX on Stack Overflow? [closed]

MathOverflow has an awesome engine where you can embed LaTeX in questions, answers, and comments. Can we get something like this going on Stack Overflow? I think it’d be appropriate as I at least ...
Claudiu's user avatar
  • 3,650
98 votes
0 answers
2k views

Markdown change: Intra-word emphasis now works

There are tons of questions I could maybe post this as an answer to, but before choosing the best one, I'll just post this as an announcement question that can be linked elsewhere. The short story ...
balpha's user avatar
  • 155k
516 votes
10 answers
53k views

Implement ```-style (fenced) Markdown code blocks

Currently, Stack Exchange’s Markdown parser only allows four-space indents to represent code blocks: // some code // another line of code GitHub Flavored Markdown and other Markdown ...
Mathias Bynens's user avatar
27 votes
1 answer
2k views

Can we please have a place where changes to the markdown syntax are documented?

As I have observed in two recent questions, there's been some recent change to the syntax for inline code in comments. Let me here document the changes I found out so far (as in found out the hard way)...
Hendrik Vogt's user avatar
  • 6,125
137 votes
10 answers
13k views

Bold code in a question

Frequently when I ask a question I have to include quite a bit of code for reference purposes. It would be nice to be able to bold the important lines in the code. For example this code: <...
Vaccano's user avatar
  • 5,038
44 votes
3 answers
860 views

Support showing image in original size in overlay

It would be nice to support showing images in their original size when they where automatically resized because they are too big to fit in a question or answer (Example). I envision it just like in ...
Daniel Hilgarth's user avatar
26 votes
3 answers
6k views

Markdown formatting bug with code blocks in lists

Have a look at the revisions of https://stackoverflow.com/revisions/1230618/list, in particular the formatting-related edit I made (edit 2). The formatted text contains spurious newlines and ...
Konrad Rudolph's user avatar
140 votes
10 answers
5k views

Adding support for math notation [duplicate]

Every once in a while I miss having the option to write some LaTeX math on SO. E.g. when talking about automata. I'm certainly not the only one. And I think the person answering this question would ...
Stephan202's user avatar
  • 5,489
43 votes
1 answer
882 views

Spoilers don't support block formatting (and so don't format well)

While trying to assist with the formatting of a question which spoilers a list, I discovered there's not a lot of parity between how spoilers and quote blocks (which are superficially quite similar) ...
Ben Blank's user avatar
  • 549
38 votes
1 answer
662 views

What Markdown formatting features are available for Bounty remarks?

According to the community FAQ, backticks and inline links are available for the bounty remark. What other formatting features of Markdown are also supported on Bounty remarks?
Rob W's user avatar
  • 10.4k
23 votes
1 answer
621 views

What site-specific post formatting settings are available?

Certain Stack Exchange sites have specialized support for non-standard types of post formatting. Tim Post briefly mentioned these when discussing site-specific configuration settings, but he didn't ...
Stevoisiak's user avatar
  • 14.9k
169 votes
4 answers
3k views

Add badges to Markdown?

I always found it odd that although I could compose questions and answers with tags in markdown, I can't do the same for a Great Question, Great Answer, or any other badge. I assume that this is ...
Chris Frederick's user avatar
69 votes
17 answers
49k views

Should the markdown renderer treat a single line break as <br>?

Inspired by Markdown, One Year Later, a question I think would be better suited to here, than the blog's comment system.. As for #3, "Automatic return-based linebreaks instead of "two ...
dbr's user avatar
  • 23.1k
149 votes
3 answers
19k views

How do I use formatting in comments? [duplicate]

I see some people write comments that are for example - in italics. I do not see any way of doing that while writing my comments. Why is it so?
Lazer's user avatar
  • 3,675
47 votes
5 answers
6k views

Text formatting now allowed in comments (List of proven and disproven abilities)

What special formatting tricks can be done in the comments now? Proven: **text** or __text__ = Bolding = text *text* or _text_ = Italics = text `text` = Code Formatting = text [example](http://...
TheTXI's user avatar
  • 58.4k
203 votes
12 answers
39k views

Markdown footnotes?

Would you like them? You could have Markdown to have a popup appear to insert the footnote's text [*]. EDIT: you can use a symbol and then <sub></sub>, but that won't give you a link ...
Vinko Vrsalovic's user avatar
  • 10.6k
17 votes
1 answer
727 views

My comment `code block` was not converted properly, is this a bug?

In my comment here: https://stackoverflow.com/questions/409/what-is-your-favorite-coding-guidelines-checklist/138993#comment-8835926 I needed to have a : symbol with a leading space, but I couldn't ...
wim's user avatar
  • 4,475
140 votes
2 answers
56k views

What's the recommended syntax for an image with a link?

What's the recommended syntax for an image with a hyperlink? I tried doing it with the markdown toolbar buttons and the image and link buttons conflict with each other, so I had to resort to HTML. For ...
55 votes
4 answers
11k views

Fix Markdown/SmartyPants in question titles

Consider this question: is x-- > 0 && array[x] well defined behavior in c++? Unfortunately, the question title is displayed on SO as: is `x— > 0 && array[x]` well defined ...
Konrad Rudolph's user avatar
32 votes
5 answers
719 views

Formatting Keyboard Shortcuts for Comments

Ever since we got the ability to format comments, I have abused it mercilessly. I put quick code snippets in there all of the time. And I find myself often highlighting a word or two and hitting Ctrl+...
Eric's user avatar
  • 13.9k
16 votes
7 answers
388 views

Formatting should not count towards the character limit on comments

This is a minor frustration, but I have a comment that I put italics and bold into (using asterisks.) Now I know I just just be happy that I could do it at all, but it seems to me that those should ...
Vaccano's user avatar
  • 5,038
82 votes
5 answers
45k views

Can't start a numbered list on a number other than 1

Why can't I start a numbered list on an arbitrary number? Example: Some Point sub point sub point some explanation pertaining to point 1 above this should be a 2. not a 1. as I wrote 2. but it ...
darryn.ten's user avatar
  • 1,270
21 votes
1 answer
937 views

Why do code blocks sometimes not "show" properly?

It's possible that this is a duplicate of this question - but if so, I don't know why, and I can't verify whether it's the case. I've got a concrete example, although only dev (and maybe mods) will be ...
Jon Skeet's user avatar
  • 93.8k
20 votes
0 answers
525 views

Markdown table preview does not detect missing blank line before table header

When I edited an answer to add a second markdown table, both the first and second tables rendered correctly in preview, but the second table does not render. I've waited about 10 minutes in case there ...
MarkU's user avatar
  • 309
77 votes
11 answers
2k views

Can and should Stack Overflow automatically rewrite bit.ly links? [duplicate]

Quite a few people paste in bit.ly links into comments or answers, sometimes even for linking to other pages (or answers within the same page) on Stack Overflow. This way, you do not see where the ...
Thilo's user avatar
  • 1,031
8 votes
2 answers
2k views

Markdown italics with underscores look good in preview but not in answer

This answer of mine has some italicized words containing underscores in the first line. These look good in the preview, but in the answer they appear non-italicized with surrounding asterisks. Is ...
Lars Haugseth's user avatar
9 votes
3 answers
758 views

How does The Editor Handle Tab Characters?

While editing WinForms Control.BeginInvoke asynchronous callback, I found that it actually contains tab characters (despite the fact that they cannot be entered into the editor via keyboard). That ...
John Saunders's user avatar
696 votes
6 answers
330k views

How do I escape a backtick ` within in-line code in Markdown?

How do I escape a backtick ` within a code block? This is probably a duplicate, since I'm sure it's a common concern, but I can't find a question that addresses this specifically. How do I write ...
smartcaveman's user avatar
  • 9,972
224 votes
5 answers
57k views

How can the backtick character ` be included in code?

I tried before to post a shell script that contained a ` character as an answer on Stack Overflow. The parser insisted on treating the backtick as formatting instead of part of code. How can I ...
A.Rashad's user avatar
  • 2,557
74 votes
3 answers
4k views

Will CommonMark be adopted for SE? [duplicate]

An official spec for CommonMark with reference implementation was released recently. Will these specs (with optional additions like MathJax for those sites that already have it) be adopted? There ...
ratchet freak's user avatar
10 votes
1 answer
600 views

Link with double-underscored word in URL renders incorrectly [duplicate]

While reviewing https://stackoverflow.com/q/3139601/212218#3139749 I noticed that the URL that was posted as one of the answers looked weird to me: leopard_9m2809a.dmg">http://adcdownload.apple.com/...
user avatar
16 votes
3 answers
706 views

Really weird (bad, confusing) version diff

Check out this page from Server Fault. This is a really weird and confusing render of the version diffs. I imagine it is a Markdown problem - diff of answer on Server Fault. The weird ...
Evan Carroll's user avatar
18 votes
3 answers
865 views

Multiple spaces in code in comments get merged into one

Code is supposed to be exact and "as-is". Sometimes, showing two spaces is important. In a comment, it is not possible to show code with  multiple   spaces. This became apparent in this answer (see ...
Abel's user avatar
  • 2,635
18 votes
1 answer
756 views

Links with URIs of schemes other than http/https are broken

It seems like the engine completely breaks all links that use a URI with a scheme other than 'http' or 'https'. Web != Internet, guys! ;) For example, the market scheme links to the Android market: ...
hheimbuerger's user avatar
182 votes
6 answers
7k views

Allow the <small> tag

Can the <small> HTML tag be allowed and properly styled? Currently people wanting to write something small use either sup or sub which achieves a similar effect, but using it for small text is: ...
Andreas Bonini's user avatar

1
2 3 4 5
14