Skip to main content

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
929 votes
25 answers

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
773 votes
41 answers

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
  • 12.1k
723 votes
6 answers

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
  • 10.2k
646 votes
291 answers

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 ...
585 votes
55 answers

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
  • 12.1k
545 votes
1 answer

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 markup is allowed, but not all the HTML tags are allowed, to avoid XSS. Which ...
518 votes
10 answers

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
483 votes
2 answers

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
400 votes
1 answer

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 ...
377 votes
11 answers

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,333
328 votes
7 answers

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,690
323 votes
5 answers

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 ...
302 votes
5 answers

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
266 votes
7 answers

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,763
227 votes
5 answers

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,577
216 votes
3 answers

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
206 votes
12 answers

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.7k
195 votes
7 answers

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
  • 11.1k
182 votes
6 answers

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
179 votes
6 answers

Links to URLs containing parentheses

How do I add a link to a URL containing parentheses () (or "round brackets" by heathens)? For example: The parentheses around &...
178 votes
1 answer

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
173 votes
11 answers

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 ...
168 votes
9 answers

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,529
168 votes
4 answers

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
167 votes
5 answers

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
150 votes
3 answers

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,685
145 votes
2 answers

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
144 votes
10 answers

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,529
143 votes
3 answers

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,930
140 votes
2 answers

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 ...
138 votes
10 answers

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,106
136 votes
4 answers

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,413
133 votes
3 answers

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,405
132 votes
5 answers

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,890
132 votes
4 answers

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
  • 11.1k
108 votes
2 answers

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,239
104 votes
5 answers

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
104 votes
4 answers

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,143
104 votes
1 answer

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

Following the Do we want the “spoiler” feature turned off? thread on, 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

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
84 votes
2 answers

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,745
83 votes
5 answers

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,280
83 votes
3 answers

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,636
79 votes
3 answers

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.5k
76 votes
11 answers

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

Quite a few people paste in 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,021
74 votes
3 answers

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

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
70 votes
4 answers

Is it possible to horizontally center an image on Stack Exchange sites?

Since we can only use Markdown and a limited subset of HTML/CSS is it possible to center an image, or any block element for that matter, on the Stack Exchange sites?
Ben S's user avatar
  • 1,318

2 3 4 5