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
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 ...
6 votes
0 answers
56 views

Markdown inside HTML tags breaks formatting when switching to Rich text mode

This behavior is relevant to the Stacks Editor (used by default in SO Teams, and as an optional mode here on MSE). How to reproduce: Enter the following text in Markdown (with preview) mode: <sub&...
38 votes
3 answers
2k views

Better style for HTML 'definition list' <dl> elements

Among allowed HTML tags there are tags which together form 'definition list', namely <dl> (definition list), <dt> (definition term), and <dd> (definition description) elements. They ...
6 votes
2 answers
159 views

What sites have the code formatting filter enabled?

I know that the code formatting filter ("your post appears to contain code that is not properly formatted as code") is enabled on Stack Overflow. However, are there any other sites where this filter ...
6 votes
0 answers
62 views

Moderator action popup doesn't support Markdown, but contains item with it

Moderator action popup has an option "convert to edit": * text autotranslated to English Original text here is: Answers should be converted to an edit of the question when they represent ...
14 votes
3 answers
218 views

What is the proper way to link to another answer on the same question?

Sometimes I'd like to link to another answer of the same question in my own answer. The simple way to do it is to copy the permalink of the answer and use that. However, that is likely to reload the ...
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 | | |...
-11 votes
0 answers
138 views

Highly-nested blockquotes force text to be vertical

As seen in this question and my sandbox answer, using a lot of nested quotes causes text inside them to be rendered vertically. This seems like a bug. Nested Quote Trolling is not a duplicate. It isn’...
26 votes
0 answers
1k views

Prevent Markdown links from escaping the tilde character (~) on Stack Exchange

When Linking to a Text Fragment, :~:text= is used as part of the URL to identify text to highlight: https://meta.stackexchange.com/q/370143/#:~:text=to%20identify%20text%20to%20highlight%3A When ...
7 votes
1 answer
119 views

Markdown errors in blog post about RAG

Editor note: While there's at least one other applicable tag, I'd like to leave it at four tags to allow for a status-* tag. In this blog post, there's an unusual use of a code block to quote LLM ...
12 votes
1 answer
227 views

Mistake in code in recent blog post

The recent blog post looks like this: Timing of the blogpost aside, can the post be updated to remove python at the start of the code block? I presume someone intended to set the language and instead ...
17 votes
1 answer
173 views

Space to first character after quote broken if full stop [period] used

If you quote a number & add a full stop after it, the formatting jumps off to the left. > 1234 > 1234. > 123456789. > 1234567891. 1234 1234567891. It seems it keeps moving left ...
19 votes
3 answers
942 views

> is closing HTML comments without a -​- delimiter

If I try to put something like this into a question or answer <!-- <br>s are important here --> the first > after the "br" is matched to the first < before the "!--", resulting in ...
37 votes
1 answer
35k views

What is the reason for the top secret two space newline markdown weirdness? [duplicate]

In markdown a <br> is inserted if you end a line with a double space I find this feature particularly confusing. Is there a reason why markdown swallows new lines? Should SO make a modification ...
2 votes
1 answer
69 views

Produce a continuous bar on the left side of a blockquote of several paragraphs [duplicate]

I have an issue producing a continuous bar on the left side of a quotation if there are several paragraphs. If I push them together the bar becomes continuously, but the whole text isn't separated in ...
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 ...
14 votes
0 answers
105 views

Enhancement Request: Attribution Block Markdown

Over at Worldbuilding we constantly bring images and quotes in from outside sources. I suspect other Stacks do that a lot, too. When it comes to images, charts, and graphs, we want people to properly ...
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 ...
14 votes
0 answers
180 views

What Replacement Strings are available for use in Community Specific Close Reasons?

I've been working on a project to update some of our Community Specific closure reasons on Stack Overflow. In my research, I've been looking network wide at our various community's closure reasons. I'...
5 votes
1 answer
219 views

Unparsed Markdown in blog post "Ask like a human: Implementing semantic search on Stack Overflow"

Here is the blog post I'm referring to. See this paragraph (link ommitted from paragraph as it isn't relevant here) Building on the work we did to build course recommendations, we used the same ...
1 vote
0 answers
67 views

Why is my MathJax formatting so messed up? [duplicate]

Just look at this mess. The following source: We have $G$ solvable, so that we can find a tower of subgroups $$ G = G_0 \supset G_1 \supset\cdots\supset G_m = 1 $$ so that the conditions on ...
8 votes
1 answer
978 views

How do you use strikethrough on Stack Exchange? [duplicate]

I am trying to use strikethrough on one of my other Stack Exchange questions. (Now updated with working strikethrough) I have tried the following: ~~Double tildes~~ ~Single tildes~ [strike]Strike[/...
31 votes
1 answer
6k 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 ...
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 ...
3 votes
2 answers
2k views

URL with multiple ending parentheses produces broken links in markdown preview

I tried to create a link to https://docs.racket-lang.org/reference/Filesystem.html?q=rktl#(idx._(gentag._305._(lib._scribblings%2Freference%2Freference..scrbl))) using Markdown in this way: [example]...
17 votes
0 answers
178 views

Link to feedback site in tag filter email does not have the correct formatting

I noticed that the email I received for a tag filter I created on Stack Exchange has the following footer: Questions? Comments? Let us know on our [feedback site](https://meta.stackexchange.com). ...
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 &...
4 votes
0 answers
202 views

More fun with "Your post appears to contain code that is not properly formatted as code."

I have tried to post the following to Stack Overflow: I have a very simple HTML form embedded in an email I send to people who have subscribed to my blog so they can confirm their email addresses. ...
2 votes
0 answers
56 views

URLs in double quotes are not resolved [duplicate]

There seems to be a bug inasmuch that there is a disparity between the auto-resolving of Stack Exchange URLs within double-quotes contained in posts in normal viewing mode and in edit mode. Example (...
0 votes
3 answers
285 views

Is there an easy way to paste rich text into posts?

I frequently find myself trying to paste a quotation that contains some rich text, such as italics or links, and I have to reapply all the formatting myself. It would be great if there were a way to ...
9 votes
3 answers
198 views

How to escape spoiler in blockquote that starts with exclamation point

How can I "escape" the spoiler syntax when putting some text in a blockquote that starts with an exclamation point? https://webapps.stackexchange.com/a/170880/267540 Here is the text that ...
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 ...
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 ...
3 votes
1 answer
82 views

Code highlighting and image placement breaks despite correct syntax

Signal Processing answer, normal vs preview: It's only toward the bottom of the post, yet it doesn't happen toward bottom of a much longer post. I confirmed it's also reproduced only with the ...
4 votes
0 answers
85 views

Bolding in the first cell may remove it from the table

I noticed this bug in my Lit answer when I bolded the first column in some rows. The preview works (as it always does). The actual post does not, and those bolded cells are just missing: ...
9 votes
0 answers
135 views

Markdown Table Display Bug

I just noticed this answer that got bumped up recently on RPG SE. The editor was trying to replace a formerly MathJax-based table with one in Markdown, which is fine. But the table isn't working at ...
10 votes
1 answer
341 views

How can I use non-breaking spaces in questions?

I want to use a non-breaking space on Stack Exchange to ensure that an important group of words is kept together on a single line. I've tried inserting the character space directly as , but it doesn'...
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 ...
50 votes
7 answers
6k views

Style guide for Stack Overflow 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. ...
8 votes
0 answers
93 views

Missing a backtick from Markdown table in preview was well rendered, but not server side

Related: https://askubuntu.com/a/1464175/93706 In the table below, 1{print} is missing its closing backtick. The preview handles this well by having it render as plain text instead of code but when ...
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 ...
46 votes
1 answer
55k views

How to escape the angled brackets ("<", ">") in a code block?

Writing a question including a C code in a <pre><code> block, I found out that in my #include lines the header names are not displayed when using the standard <name.h> convention. ...
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 ...
1 vote
1 answer
137 views

Which wiki syntax is used on Stack Exchange? [duplicate]

Possible Duplicate: Which tools and technologies build the Stack Exchange Network? I've seen a lot about Markdown here, but I haven't seen any direct answer. Could you ensure me that Stack ...
6 votes
2 answers
7k views

Markdown syntax for link inside pre block

When using markdown you can enter a space at the beginning to get a nice block around your text. The following without a space would present a link: some link but the same syntax with a space in ...
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. ...
65 votes
0 answers
1k 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 ...
13 votes
0 answers
1k views

Offline markdown editor for draft answers

I'm wondering if anybody else has the requirement of having an (offline) editor when posting long questions and answers and would prefer to create the text in a separate (offline) editor to reduce the ...
5 votes
0 answers
77 views

Comment markdown formatting doesn't render correctly when immediately followed by a forward slash

Consider either of the following Markdown formatting examples: a**b**/c a*b*/c They will (as expected) render as ab/c and ab/c, respectively, in posts. However, in comments, it does not work for some ...

1
2 3 4 5
40