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
556
votes
42answers
63k views

Formatting Sandbox

Note: 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. As per Jeff's suggestion in this comment: You can use ...
341
votes
1answer
244k 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 ...
460
votes
1answer
252k views

What HTML tags are allowed on Stack Exchange sites?

The Stack Overflow site engine, as you know, uses Markdown for questions and answers. Per the Markdown specification, you are allowed to freely intermix HTML and Markdown tags. Not all HTML tags are ...
346
votes
12answers
49k 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 ...
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 ...
810
votes
22answers
218k views

Is there Markdown to create tables?

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?
243
votes
5answers
86k views

How to nest code within a list using Markdown

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 ...
33
votes
4answers
4k 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?
159
votes
11answers
42k 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 ...
142
votes
6answers
77k 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 "VS.85" ...
115
votes
5answers
3k 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 ...
55
votes
3answers
2k 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 ...
69
votes
3answers
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 ...
262
votes
7answers
28k 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 ...
116
votes
10answers
8k 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: <...
25
votes
1answer
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)...
491
votes
10answers
38k 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 ...
125
votes
10answers
4k 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 ...
85
votes
0answers
1k 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 ...
26
votes
3answers
5k 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 ...
67
votes
17answers
41k 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 spaces at end ...
41
votes
3answers
656 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 ...
126
votes
3answers
15k 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?
43
votes
5answers
5k 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://...
153
votes
4answers
2k 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 ...
170
votes
10answers
30k 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 ...
31
votes
1answer
504 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?
14
votes
1answer
571 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 ...
30
votes
5answers
590 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+...
10
votes
1answer
483 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/...
185
votes
4answers
36k 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 ...
20
votes
1answer
752 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 ...
63
votes
3answers
2k views

Will CommonMark be adopted for SE?

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 ...
77
votes
4answers
31k 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 explaination pertaining to point 1 above this should be a 2. not a 1. as I wrote 2. but it ...
77
votes
11answers
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 ...
42
votes
3answers
580 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 ...
8
votes
2answers
1k 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 ...
8
votes
3answers
461 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 ...
18
votes
3answers
679 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 ...
16
votes
3answers
664 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 ...
4
votes
2answers
511 views

URL inside parenthesis are not automatically hyperlinked

Similar to this question. While cleaning up some URL shortened links, I noticed that links are not automatically hyperlinked when enclosed in parens. For example, (http://meta.stackoverflow.com) and ...
11
votes
3answers
344 views

Italicizing words that include an underscore doesn't work

Here's the screenshot of my experience with italic text over Stack Overflow. Basically it just wraps the word into asterisks and leaves it like this. Here on Meta I do not observe this bug.
237
votes
4answers
17k views

Keyboard Glyphs

How are people showing keyboard "glyphs" on Super User? I looked at the Markdown help page and it didn't show anything regarding this. Here is an example. (question has been deleted since this was ...
65
votes
2answers
5k views

Code blocks after a list, but not within a list in markdown. Is it possible? [duplicate]

Possible Duplicate: Code block is not properly formatted when placed immediately after a list item In this post about nesting code-blocks in lists, it is explained that if you want to nest a code-...
21
votes
2answers
711 views

Unable to read any question or answer in Android app due to black box

This is a bit of a more unusual bug to report: The screenshot above is unedited - the black box is rendered by the Stack Exchange application. Phone: Samsung Galaxy Discover running Android 4.0.4 (...
42
votes
2answers
488 views

Adding a new link to a post messes up indexes in square brackets in code already present in the post

In an answer, I was adding some links to the documentation, after I wrote some PHP code. As result, the code was altered. Take as example the following Markdown with an indented code block. if (...
15
votes
1answer
598 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: ...
9
votes
2answers
343 views

Markdown seems not to work in tag information excerpts

Today I noticed that when you click on a tag, it displays the "tag wiki" information at the top of the page. However, it appears that Markdown processor wasn't applied to it. The bug appears in [...
4
votes
2answers
280 views

What is up with lighter/washed out text? [duplicate]

Occasionally I'll open a question and find some of the text has been set to a lighter color than normal i.e. LIGHT: instead of DARK: I can't find anywhere that explains what this means.
3
votes
1answer
491 views

Unbalanced blank lines after inline HTML comments might break formatting

Not a big issue as this won't happen often, if ever again. (But it just scared me a lot when I messed up the Recent feature changes to Stack Exchange with this revision.) The following does not ...