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
806
votes
22answers
217k 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?
558
votes
39answers
62k 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 ...
490
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 ...
460
votes
1answer
251k 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 ...
402
votes
5answers
200k 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 ...
401
votes
2answers
22k views

How can I format as keyboard keys? [duplicate]

Some answers contain characters that look like keyboard keys, used as e.g. Ctrl+E. What markup do I need to add to make Ctrl and E look like actual keys? That's not mentioned in the formatting help.
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 ...
339
votes
1answer
242k 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 ...
261
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 ...
241
votes
5answers
85k 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 ...
234
votes
4answers
16k 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 ...
185
votes
4answers
35k 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 ...
168
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 ...
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 ...
158
votes
11answers
41k 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 ...
156
votes
7answers
156k views

How to write nested numbered lists

I just posted an answer on Stack Overflow where I wanted to have nested numbered lists, something like 1. Dog 1.1. German Shepherd 1.2. Belgian Shepherd 1.2.1. Malinois 1.2.2. Groenendael 1.2.3. ...
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 ...
149
votes
6answers
6k 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: ...
141
votes
3answers
14k views

Add a strike-through to the editing interface

If you highlight some text, you can just press a button to have it automatically emphasized on indented 4 spaces for a code sample. I think it would be great if we had this feature with strike-...
140
votes
5answers
76k 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" ...
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?
124
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 ...
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: <...
115
votes
6answers
76k views

Does Markdown have a way to express strikeout?

I've been using <s> to put strikeout in posts -- is there a Markdown way of doing it? It seems like -[Text here] would make sense, hehe :)
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 ...
114
votes
1answer
40k 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. ...
108
votes
5answers
26k views

How can I write math formula in a post?

I want to ask something that contains a mathematical formula. How can I write the equation? Is there a page that shows the syntax? I thought there must be some syntax like in Wikipedia or ...
100
votes
2answers
11k views

How to strike text? [duplicate]

Sorry but I couldn't find this info. How do I strike the text?
94
votes
1answer
135k views

Creating an image link in Markdown format [duplicate]

Possible Duplicate: recommended syntax for an image with a link How can I create an image link using the Markdown format? I want an output like <a href="" rel="some text"><img src="/path/...
89
votes
3answers
22k views

How do I use a small font size in questions and answers?

Is there any way to use a small font size in questions or answers? That is, for the purpose of minor and possibly irrelevant information? I've checked the Markdown syntax but couldn't find anything. ...
88
votes
4answers
64k views

Is it possible to have definition lists in Markdown?

I just wrote this question and was wondering if there's a MarkdownSharp syntax for specifying a definition list -- it would have made specifying those function arguments a bit more natural... If ...
84
votes
2answers
1k views

Time to fork Markdown?

It's been nearly 18 months since Jeff Atwood asked about The Future of Markdown, proposing that... ...Stack Exchange, GitHub, Meteor, Reddit, and any other company with lots of traffic and a ...
84
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 ...
83
votes
3answers
68k views

How to combine bold and “code sample” in Markdown? [duplicate]

How can I make a word in a code sample bold? I only see asterisks around the expected bold text. sample **sample** sample
82
votes
3answers
1k views

Can we add Markdown support for tables?

This is similar to: Is there Markdown to create tables? and Please add support for tables in answers and questions, but is slightly different. The other questions are asking more of a why question, ...
79
votes
2answers
10k views

Key stroke combination markdown? [duplicate]

Possible Duplicate: Keyboard Glyphs I got an answer with some cool keystroke formatting, but I don't see how to do it on the markdown reference, or the more detailed markdown reference -- maybe I ...
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 ...
76
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 ...
73
votes
3answers
50k views

Markdown extension for really small tiny text?

So one feature that I really wish markdown had was support for really small tiny text. Which I just produced by using the <sup> tag. I think this could be implemented by using the caret symbol ...
70
votes
5answers
47k views

Is there a good way to represent file structure in a question/answer?

I'm always looking for the best way to represent a file structure on my posts. I generally use this one: Project | +-- file 1 | +-- dir 2 | | | +-- file 2.1 | +-- dir 3 | | |...
69
votes
1answer
26k views

What's the exact syntax for spoiler markup [duplicate]

Following the Do we want the “spoiler” feature turned off? thread on meta.tex.sx, it's clear that the spoiler markup has a wrinkle or two that I didn't at first appreciate. For information's sake, ...
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 ...
67
votes
17answers
40k 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 ...
65
votes
2answers
4k 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-...
65
votes
3answers
10k views

How do I use superscript and subscript characters in questions

When I need to ask questions occasionally I'll need a super or a subscript letter or number for pseudo-code or math equations. I've seen this done in questions like in this answer: Special ...
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 ...
60
votes
2answers
381 views

Give some love to the Bounty tool

The beautiful bounty tool allows me to specify up to 3,000 characters in my optional custom message at the end, so I laid out a beautifully formatted message with line-breaks... the full works. It ...
59
votes
1answer
5k views

Add Graphviz support to Markdown

The Request This is a request to add Graphviz (DOT) support to Markdown. This will allow us to easily embed editable and indexable graphs in questions and answers. I imagine it will be particularly ...