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
23
votes
1answer
168 views

Leave newlines intact in bounty messages

Bounties allow us to provide a message along with bounties we place, should we deem it useful to include one. I use this myself regularly, and sometimes a decent explanation is warranted so that ...
7
votes
0answers
60 views

Formatting help needs to show how to do keyboard key markdown

Related to: How can I format as keyboard keys? The markdown editing help page, here for example: https://superuser.com/editing-help , does not include this example.
561
votes
47answers
64k 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 ...
822
votes
23answers
220k 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?
6
votes
3answers
111 views

Fold a big chunk of text in a question

Is it possible to fold a big chunk of text in a question? In my case I need to paste this html into this question. I need this, because, the big chunk of text is relevant for the question, but is ...
116
votes
5answers
27k 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 ...
7
votes
2answers
125 views

Fix misuse of code formatting in “Comment everywhere” privilege documentation

The "comment everywhere" privilege documentation refers to the "add a comment" link using code formatting. This may mislead people into thinking that code formatting should be used for English quotes,...
21
votes
1answer
225 views

Why does the following Markdown (blockquote, code block, #) render the way it does?

Why does the following Markdown: > ``` # test render as it does? <h1>test</h1> Yes, you see that right: the # is converted even though it's inside a code block. Furthermore, it's ...
-7
votes
0answers
92 views

Add code and formatting to the preview of a question

This: Is a picture of a question when you search. And this: Shows that there is code in this question. Now in the top image it doesn't show code blocks, could we change it so it does? The same ...
12
votes
2answers
183 views

Preventing word-breaking in flowed paragraphs

In questions and answers, I would sometimes like to keep a whole string together, to avoid what's happening to the string [![:print:]] here: Is there a trick to avoid breaking a short string? In ...
0
votes
1answer
73 views

How can I shade and finish shading a quote, and how can I use a thick font for a phrase?

I am not expert in computers. I write posts, comments and answers, but I can't shade the quotes with the yellow colour. How can I shade and finish shading of the quotes? How can I write a phrase or a ...
4
votes
1answer
513 views

Syntax highlighting and non-ASCII characters [duplicate]

I think Markdown google-code-prettify has some incorrect lexical rules for Java (and possibly other languages). It correctly identifies this code block from SO question 1485832 as being written in ...
21
votes
2answers
21k views

Is the dollar sign ($) used for markdown? If yes, then how can I safely insert it?

I want to write something basic like "10 $US" but sometimes it makes the text look weird. It changes the font and writes italic text. And sometimes it will insert a newline. For example in my answer ...
3
votes
1answer
114 views

Why am I getting a “code not properly formatted” error?

I know this question is asked a lot, but I looked at those answers and don't see an obvious place where that would apply to my post. I'm trying to post the following to Stack Overflow, but it won'...
10
votes
2answers
2k views

How to copy and preserve text formatting from a website, when pasting on SE?

How can formatting from websites be copied and pasted, or efficiently replicated? I must eschew pasting only text and then formatting myself from scratch. E.g. Etymonline and Wiktionary contain ...
77
votes
5answers
51k 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 | | |...
413
votes
2answers
23k 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 ...
0
votes
1answer
1k views

Alternatives for placeholders in Markdown?

Which one is the best way of writing a "placeholder" (I don't know if it has another name) in Markdown? I mean a string inside a code listing that the reader should consider as a generic variable, ...
17
votes
6answers
727 views

Add parenthesis as an accepted markdown Ordered List delimiter

The markdown editor knows that an empty line: followed by a number, followed by a period, followed by a space, is a list item. This works great It's almost magic The problem is that I almost ...
354
votes
12answers
50k 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 ...
254
votes
5answers
89k 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 ...
16
votes
1answer
106 views

Can we get diff markup/markdown within posts?

I just realised recently how useful it would be to show diffs in posts. Mostly on programming sites, but it could be useful on language sites as well. For Stack Overflow, Software Engineering, etc.: ...
-55
votes
5answers
4k views

Support Emoji in Markdown

Stack Exchange uses Markdown, but unlike so many other sites (e.g. GitHub, Discourse, Slack) that use Markdown, we don't support Emoji. I'd like to be able to write :smile:, :thumbsup:, :heart: or ...
6
votes
2answers
101 views

Can I wholly replace a graphic with another one?

I have an image that I use over and over... I am savvy to how SE stores images on Imgur. So whenever I insert it, I find the URL of the image https://i.stack.imgur.com/Gh0yO.png, and tell "post image"...
5
votes
1answer
126 views

Why there is no command to center images?

Why there is no formatting command to center images in Stack Exchange posts?
7
votes
4answers
6k views

Markdown for ticks and crosses

I really like the tick marks in some answers to this question. This would particularly useful on Software Recommendations, where users ask us to recommend software with a list of features. In reply, ...
-11
votes
2answers
2k views

How to insert 'Emoji' in stackexchange posts? [duplicate]

It had been some times I joined Stackoverflow. And it is really a massive stage for knowledge sharing. Stackexchange posts support Markdown syntax. In GitHub Markdown we can insert Emoji. Like if we ...
343
votes
1answer
247k 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 ...
143
votes
6answers
79k 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" ...
10
votes
0answers
76 views

Either fix edit preview display to render bare links to more than five sites just like the post renderer, or convert all links

This is probably easier to show than tell... On the recent question Is asking for user stories off-topic on meta sites?, I see the following: As you can see, the first five links render properly, ...
43
votes
7answers
4k views

Style guide for questions and answers

Recently I saw a question title of "combine 2 resultset". I think the community deserves nicely written and formatted content. I guess this would require just ten more seconds from all of us. ...
14
votes
0answers
76 views

Quote formatting with Ctrl+Q puts the > in annoying places [duplicate]

If I paste in a quote and press Ctrl + Q it will apply quote formatting like so: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore ...
46
votes
0answers
977 views

Adding a link with a space in front causes the link to not work

When you paste a link into the "Insert Hyperlink" box, it adds it automatically as a citation link: [Example 1][1] [1]: http://example.com But when you paste a link starting with a space , it ...
-12
votes
3answers
368 views

Can we get markdown support in questions' `title` field?

It would be nice to add markdown support on the question's title field. It seems a bit inconsistent when it’s already available in the body and question's comments. What do you think?
3
votes
1answer
93 views

Where is the list of language names supported by the markdown fenced code blocks?

Related to Implement ```-style (fenced) Markdown code blocks On this answer I used ```makefile and it is "working" the highlighting: However, on this other answer, I am also using ```makefile and it ...
37
votes
3answers
375 views

Differentiate spoilers from empty block quotes

I have to admit, I didn't even know spoilers were supported until today, but really bugs me that spoilers just look like empty block quotes before you mouse over them. vs.     ...
91
votes
4answers
66k 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 ...
9
votes
1answer
743 views

Which Stack Exchange sites have syntax highlighting enabled?

The code syntax highlighting feature is only enabled on certain sites. In order for code to be highlighted and for any of the hints listed in the above question to work, the Markdown extension has to ...
6
votes
0answers
64 views

Is it possible to add a “Formatting” section to the “How to ask a good question” page?

So I just cleaned up this question on SuperUser: Look at what was originally posted in the revisions history to see what I mean. I was going to post a comment regarding how proper and basic ...
25
votes
1answer
384 views

Protocol-relative and relative URLs should be considered “Linked”

Currently, neither protocol-relative URLs, nor relative URLs, are recognized by the system as pointing to questions to be added to the "Linked" list for the current question. Given the pending switch ...
2
votes
1answer
57 views

How do you type `\` inside a codeblock in chat?

I showed someone in the Bridge how to make a shrug emoji (¯\_(ツ)_/¯) and while discussing the use of backticks, code blocks and backslashes in markdown, I realized that it's impossible to type ...
2
votes
1answer
426 views

Allow “title” attribute in allowed HTML <tags>

title is a global HTML attribute applicable to any HTML <tag> with the purpose of adding some 'extra information' to the contents of that tag. When used, it's rendered as a tooltip with the ...
3
votes
1answer
32 views

Allow access to per-site meta posts' code via edit

The edit option is useful not only to edit, but also (and more importantly to me) to know/copy-paste the code that the user has typed in to obtain the given display. Yet when I try to use this on ...
11
votes
0answers
112 views

Beautify Wikipedia links

There is some support on SE for rewriting links to a question with the question title; for instance, if I add a bare link of the form https://meta.stackexchange.com/questions/49433/replace-trilogy-raw-...
43
votes
7answers
10k views

Alternative to backticks for keyboard without backticks?

I'm using an Italian keyboard so I do not have backticks. The problem for me is not when I'm writing a question, because I can use the UI of course, but when I'm writing a comment I have to use the ...
2
votes
2answers
583 views

Formatting questions/answers with a scroll bar

My questions/answers have code blocks and lengthy ones. I would like to have horizontal scroll bars instead of wrapping the text. What kind of format I should do to achieve this?
6
votes
1answer
96 views

How can I display mathematical formulas on sites that don't support MathJax/LaTeX?

I want to ask a question on Web Applications about the usage of mathematical formulas with WolframAlpha. Certain Stack Exchange sites include support for MathJax/LaTex formatting, which allows for ...
147
votes
3answers
15k 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-...
9
votes
1answer
219 views

Image markdown breaks if the alt text contains a URL

Including a URL in the alt text for an image breaks it, as long as the URL is preceded by a space: Normal image ![Alt text](https://cdn.sstatic.net/Sites/stackoverflowmeta/img/logo.png) Broken ...
10
votes
2answers
116 views

How should italics be formatted in Markdown?

When asking a question, the "How to Format" information says: ► _italic_ or **bold** suggesting using underscores to italicize a word. Yet if one selects a word and clicks on the "I" in the ...