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
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
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
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 ...
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
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 ...
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
482 votes
2 answers
26k views

How can I format as keyboard keys? [duplicate]

Some answers contain characters that look like keyboard keys. They look like 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 ...
Torben Gundtofte-Bruun's user avatar
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 ...
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
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
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 ...
298 votes
5 answers
26k 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 ...
Jorge Israel Peña's user avatar
252 votes
7 answers
349k 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. ...
MarcoS's user avatar
  • 2,623
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
209 votes
3 answers
20k 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-...
Gordon Gustafson's user avatar
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
189 votes
6 answers
227k 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 :)
Billy ONeal'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
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 &...
177 votes
1 answer
309k views

Creating an image link in Markdown format [duplicate]

How can I create an image link using the Markdown format? I want an output like <a href="" rel="some text"><img src="/path/to/file" alt="" /></a&...
user avatar
170 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 ...
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
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
165 votes
5 answers
45k views

How can I write a 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 ...
Yochai Timmer's user avatar
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
143 votes
2 answers
16k views

How to strike text? [duplicate]

Sorry but I couldn't find this info. How do I strike the text?
John Smith Optional's user avatar
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 ...
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
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
136 votes
3 answers
153k 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
B Faley's user avatar
  • 3,860
135 votes
4 answers
39k 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. ...
Alex Angas's user avatar
  • 5,403
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
130 votes
4 answers
126k 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 ...
Kredns's user avatar
  • 5,367
128 votes
4 answers
100k 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 ...
Billy ONeal's user avatar
107 votes
2 answers
16k 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 ...
Greg Mattes's user avatar
  • 1,229
101 votes
5 answers
84k 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 | | |...
Jean-Rémy Revy's user avatar
101 votes
4 answers
17k 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 answers of this question: Special superscript ...
Niko's user avatar
  • 1,113
101 votes
1 answer
57k 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, ...
Charles Stewart's user avatar
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
85 votes
3 answers
2k 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, ...
daviesgeek's user avatar
  • 1,644
84 votes
2 answers
1k views

Time to fork Markdown? [duplicate]

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 ...
Jack Douglas's user avatar
  • 7,755
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
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
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
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
70 votes
2 answers
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-...
Dan Herbert's user avatar
  • 1,001
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

1
2 3 4 5
40