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
10 votes
0 answers
81 views

Url protocol should not be required for image links

It is possible to write links without specifying the protocol, in this manner: [This is a reference-style link][some-link] [This is an inline-style link](//stackexchange.com) [some-link]: //...
646 votes
291 answers
90k 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
1 answer
132 views

Incorrect rendering in all but answer list

If I visit https://android.stackexchange.com/a/205140/311449, the lists are how I expect them to be - correctly indented: However, that same source code's rendering shall break, should I: ...
0 votes
0 answers
39 views

Numbered list indentation shows in edit mode but not in normal mode - when using parentheses (")") [duplicate]

Look at this answer in normal viewing mode: There is no numbered list indentation, so you might think about editing it using a dot, i.e. 1., instead of using a parenthesis i.e. 1), in order to fix ...
195 votes
7 answers
250k 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 :)
2 votes
1 answer
94 views

format color error for XML [closed]

The colorization auto-formatting doesn't seem to work too well for XML over at SO. It seems to work properly over here. Check out the color of the XML at the bottom of this question: In XSLT, can I ...
2 votes
2 answers
119 views

Is the \ escaping of a char in the formatter a bug or just difficult to get right for every language? [closed]

In Delphi the \ does not escape a string ending, in Delphi if you want a ' you type: StringVariable := 'Foo'' bar'; // comments And it works as expected, but in an answer on StackOverflow I've ...
12 votes
2 answers
567 views

Why has the parsing of the &nbsp; in tables changed?

I am used to using the &nbsp; HTML character to visually fill out the width and/or height of tables so they are used to their full potential: So that instead of this: I get this:                 ...
45 votes
1 answer
500 views

Markdown code for tags in older posts is rendered as text

We were able to add tags in a post using a special syntax, like this [tag:example]. For older posts, they don't appear as tags anymore. Instead they are rendered as hypertext links. This bug is "...
1 vote
0 answers
38 views

Cannot paste into SE code blocks when Editing, breaks text editor and Markdown preview

There seems to be something wrong with the text editor when editing code inside ``` code blocks. I've noticed this when editing questions. Copy code from my IDE Edit a question Highlight all of the ...
27 votes
1 answer
656 views

What site-specific post formatting settings are available?

Certain Stack Exchange sites have specialized support for non-standard types of post formatting. Tim Post briefly mentioned these when discussing site-specific configuration settings, but he didn't ...
32 votes
1 answer
7k 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 ...
4 votes
2 answers
217 views

How can I make a reversed numbered list in a question or answer?

Numbered lists are easy: Item1 Item2 This is how it looks when I'm typing this question: Reversed numbered lists are not that easy: Item2 Item1 This is how it looks when I'm typing this question: ...
3 votes
0 answers
68 views

Too low baseline with italics in comments

I noticed that some of the italicized words in comments are too low, on at least one site. See I pronounce question as kweshtin. Is my pronunciation wrong? and also the following screenshot: Comment ...
-5 votes
1 answer
168 views

HTML tables are unusable [duplicate]

I want to modify https://stackoverflow.com/revisions/56857772/2#:~:text=http%3A%2F%2F%20www.%20example,user%20%40%20example.com Source The following **bold** parts of URLs *may* be case-sensitive, ...
26 votes
0 answers
630 views

Markdown table preview does not detect missing blank line before table header

When I edited an answer on Electrical Engineering Meta to add a second markdown table, both the first and second tables rendered correctly in preview, but the second table does not render. I've waited ...
2 votes
0 answers
79 views

Escaping a backtick with a backslash in backtick-delimited inline code seems to be broken

In the comments, you can use `\`` to escape a (code formatted) backtick, like so: resulting in However, in question (and answer) posts, it doesn't work. It ends up looking like three backticks: ```....
43 votes
3 answers
1k views

Add format for logs/warnings/error messages which allows word-wrapping and preserves newlines

At the moment, we have these choices when providing error messages / logs: Use code-blocks This preserves the formatting of the error message, though it uses spurious highlighting and disables line-...
545 votes
1 answer
283k 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 markup is allowed, but not all the HTML tags are allowed, to avoid XSS. Which ...
42 votes
7 answers
1k views

Is using 'heading' Markdown okay in answers?

Edit: I have changed the answer in question to use ### instead of ## now. See this answer of mine: https://stackoverflow.com/a/20820086/538216 The asker of the question keeps editing my post to ...
1 vote
1 answer
138 views

Bold text conversion doesn't work across paragraph break

When there is a paragraph break between two bold codes (double asterisk), the asterisks are displayed and nothing is bolded.  Is it a bug, or intentional? Possibly related; not duplicate: Markdown ...
41 votes
6 answers
44k views

Which Markdown formatting should be used for a filename of code?

I often want to write filenames for code. Normally I write like this: Filename string = "This is example code" Is this okay? Is there a standard Stack Overflow way of Markdown formatting ...
585 votes
55 answers
65k 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 ...
3 votes
1 answer
122 views

Post formatting is not accurate for numbered lists of code blocks. Is this a bug?

Compare the way this list looks in the post versus the screenshot of the preview: text: 1. { label: `Baz ${x ? n1 : n2}`, kind: "B", } satisfies B, 1. { label: `Baz ${x ? n1 : n2}` ...
6 votes
0 answers
64 views

Inline code in blog contains raw markdown (backticks) instead of proper inline code

In the recent blog post on Rust & the White House, there's some unescaped Markdown: (and Rust will let you explicitly mark code `unsafe`) But suppose you can’t rewrite your entire C or C++ ...
32 votes
4 answers
5k views

Why should users have to press Return twice to insert new lines?

When I post a question and want to add a new line, I have to press Return two times, or else the next text will appear on the same line. Is this really supposed to behave this way? If so, why?
3 votes
0 answers
59 views

Code formatting sometimes overflows to the right column

Here is an example in this now-deleted question: Copy-pasting the problematic line here: SELECT enterpriseid, lastUpdated, oldrecords,case when array_size(newrecords)>0 then ...
5 votes
1 answer
159 views

Cannot post my question because of code formatting [closed]

I tried to post a question on the Mathematica forum, I spend a hour writing it correctly and I have the following error when I want to submit it: "Your post appears to contain code that is not ...
4 votes
1 answer
112 views

How to format question while using SO on phone

What is the easiest way to format question on the phone. Most of the time I use SO on my iPhone and don't find it that easy. Also do we have any iPhone app for SO ? I couldn't find any in the app ...
133 votes
3 answers
137k 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 ...
-11 votes
1 answer
213 views

feature request: make numbered list formatting less math unfriendly

As explained in this other post, numbered list formatting can be quite math unfriendly. Would it be possible to use a new numbered list, used on circles, squared or "bracketed" numbers, as ...
-13 votes
3 answers
569 views

What is the best formatting to quote an LLM/ChatGPT question/answer?

Say I want to mention what ChatGPT said. How is the best way to delineate what is the prompt and what is the response?
265 votes
7 answers
381k 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. ...
2 votes
0 answers
90 views

Markdown for links in comments sometimes breaks with angle brackets and nested square brackets

The following markdown: [[example].com](https://www.example.com) (<https://www.example.com/abc>) Produces this in a post: [example].com (https://www.example.com/abc) But this in a comment: [[...
16 votes
3 answers
906 views

Does Stack Exchange Markdown support MermaidJS?

MermaidJS was my favourite cool thing in 2018! But I can't find a way to draw MermaidJS graph or sequenceDiagram on Stack Overflow. I've seen many Markdown tools such as StackEdit, Typora, Markdown ...
216 votes
3 answers
21k 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-...
6 votes
0 answers
69 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&...
39 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
171 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
64 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 ...
15 votes
3 answers
308 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 ...
104 votes
5 answers
88k 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 | | |...
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
133 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
231 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
174 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
1k 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
77 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 ...
206 votes
12 answers
40k 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 ...

1
2 3 4 5
40