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).
1,979 questions
10
votes
1
answer
133
views
How can I see what Markdown was used in a chat message?
If I see a message in chat for example this one:
How can I find the Markdown that was used to create it?
2
votes
0
answers
38
views
Combining lists with quotes leads to the first list item not being recognized
When combining lists with quotes (or spoilers), something strange happens. The following Markdown:
1.
> This is the first quote.
2.
> This is the second quote.
produces
1.
This is the first ...
0
votes
1
answer
70
views
How to apply text attributes in code blocks? [duplicate]
In bio.SE, I use code blocks to type out genetic code and related things like sequence of numerical position of codons like in this answer.
So in this answer, I've added the following code block
123 ...
10
votes
1
answer
146
views
Something broke Markdown tables with column alignment in the Markdown preview shown below the editor
This is Ham Vocke's demo table with aligned columns:
| left | center | right |
|:---- |:------:| -----:|
| One | Two | Three |
This is it, rendered:
left
center
right
One
Two
Three
In the ...
9
votes
1
answer
181
views
hr breaking formatting
I was just working on a question, when I was adding a note at the bottom:
For some reason, this made the formatting break. I only prefer using hr for lines, but I also tested it with ---, and it then ...
1
vote
0
answers
57
views
Formatting in the middle of a URL in chat displays formatting, then does not
I attempted to use formatting to highlight a possible spelling error to someone in chat. They'd mispelled stackexchange - so I'd tried to highlight just that word in the full URL as say unix....
2
votes
0
answers
73
views
Chat: Incorrect formatting of cursive or bold text adjacent to brackets
All of these fail to be formatted correctly in Chat:
\[*test*\]
Expected: [test]
Actual: [*test*]
[[*test*]](https://en.wiktionary.org/wiki/test)
Expected: [test]
Actual: [[test]](en.wiktionary.org/...
6
votes
0
answers
115
views
When < and > appear in MathJax, the context in between is not displayed
Occasionally, I have some glitches while using math equations. I am not sure if it's a bug, but I have encountered it on different systems. Whenever I try to write "i < j" in math mode, ...
4
votes
1
answer
98
views
An apostrophe after a CommonMark hyperlink breaks the client-side preview renderer (but still renders correctly server-side)
An Example
At softwarerecs.stackexchange.com/posts/93650/edit/0ca6aecd-c013-42bb-b9f3-b41c3c60ae33 (note that the appended hash is removable), [`meta.stackexchange.com/q/412232`][2]'s breaks the ...
7
votes
1
answer
104
views
Code samples in spoilers still have issues
Suppose I have a section of text in the middle of a spoiler and I want to put some in a code block such that it is surrounded by the spoiler text on both sides:
If I try
>! something
>! <pre&...
1
vote
1
answer
74
views
The markdown renderer should make the priority of code or math quotation to be greater than the table separator
Steps to reproduce:
Insert the following text
| `\bigg|_1^2` | $\bigg|_1^2$ |
| ------ | ----- |
| | |
Expected behavior:
A rendered table with fields \bigg|_1^2 and $\bigg|_1^2$
Actual ...
3
votes
0
answers
81
views
Four things having two meanings, can we have different numbering formats? [duplicate]
In this question I asked this morning, I have the following reasoning: "The following four things have the following two meanings.", and later on I'd like to refer to those meanings.
For ...
13
votes
0
answers
102
views
Markdown parsing does not occur in the snippet of a chat message shown when replying
It seems that very recently (as in, within the last half-hour) chat replies now show a snippet of the message that you're replying to. However, this snippet does not have any of the normal chat-...
9
votes
2
answers
150
views
How do I view the markdown of a self-deleted question?
I recently posted a question before realizing it needed some revision. I deleted the post intending to edit and undelete later before learning you cannot edit self-deleted questions.
Normally I would ...
2
votes
0
answers
139
views
Post preview does not match final result when using certain special characters in bare URLs
https://politics.stackexchange.com/a/92848
The preview when editing looks like this:
• https://en.wikipedia.org/wiki/Whig_government,_1830–1834
The final post looks like this:
• https://en....
4
votes
1
answer
164
views
Mathematical equation display on stackexchange
When I look at this page 3 point to circle. And get radius in particular the last equation on the page starting "r= ..."; but the whole page is equally affected, when I first view or refresh ...
3
votes
1
answer
100
views
Rendering bug for MarkDown table [duplicate]
I found out that a table with a "title" that rendered correctly in MarkDown during editing in the preview doesn't render correctly during rendering once posted.
Title
This | is
----|-----
a |...
1
vote
0
answers
78
views
Is there a full list of StackExchange sites shortcodes somewhere? [duplicate]
I know shortcodes exist to mention Stack Exchange sites, like [SO] for Stack Overflow, [SF] for Server Fault, or [SU] for Super User. I also know third-level Stack Exchange sites can be mentioned as [...
10
votes
1
answer
216
views
Code block usability issues in Stacks Editor
Some issues with the new Stacks Editor's code block usage:
Had to make it a GIF to upload here but the video is supposed to stop when I press the discard button and click the off-screen confirm box.
...
3
votes
0
answers
53
views
Unable to make syntax highlighting working [duplicate]
Disclaimer: I'm more a reader than a contributor on Stackoverflow, so I may have missed something obvious for you all.
I've posted this question (about some typescript issue), and added the Typescript ...
15
votes
0
answers
446
views
Add Markdown (or HTML) Callouts/Alerts/Admonitions
It's hard to believe this hasn't been suggested before (I assume it must have been), but my search-fu yielded only one 10-year-old post with little traffic, no accepted answer, and some very nostalgic ...
1
vote
0
answers
227
views
Should we fix the exploitable bugs in how Markdown is rendered in comments? [duplicate]
By using strategically placed Unicode characters, such as U+202E "Left-to-right override", the structure of comments can be distorted in every which way. For example, one can make themselves ...
14
votes
0
answers
89
views
Multi-paragraph spoiler blocks (still) don’t work properly
Blockquotes and spoilers have almost the same syntax: a blockquote where every line starts with an exclamation mark is a spoiler.
In order to blockquote multiple paragraphs correctly, you simply add ...
0
votes
0
answers
50
views
When user highlights more than 1 line of code and pressed 'code sample', make it a code block [duplicate]
When I enter multiple lines of code and then press 'code sample' or ctrl+k, the method of formatting is that it all automatically gets indented. However, I propose that any multi-line code should ...
5
votes
0
answers
105
views
Indented Stack Snippets don’t render well
This Markdown:
- foo
if (Math.random() < 0.5) {
console.log("hello, world!");
} else {
console.log("goodbye, cruel world!");
}
Renders as:
foo
>
> if (...
33
votes
0
answers
252
views
Reconsider adding Markdown support for footnotes
A 2009 feature request to add support for Markdown footnotes was declined in 2014.
The reason(s) for declining appear to no longer be valid:
We want to avoid creating proprietary additions to ...
2
votes
2
answers
324
views
How can I ensure line breaks inside block quotes are rendered as entered in the markup?
At least in the editor preview, this doesn't render linebreaks:
> foo
> bar
> baz
foo
bar
baz
Screenshot:
Is this a problem of my browser? Or something else? On StackEdit it works as ...
18
votes
6
answers
556
views
Please, I want some more HTML
Stack Exchange supports a restricted subset of HTML. In some ways, this is good; but in others, it's a little too restrictive. It would be nice to have the following:
Elements
<details> / <...
3
votes
0
answers
77
views
Workaround for bug causing \ before dollar signs to be rendered as \\\ on MathJax enabled sites?
As the title says, a single \ in a code block is being rendered as \\\ if preceding a $. This seems to be the same bug reported here, but since it hasn't been fixed, I am asking for a workaround. ...
5
votes
3
answers
294
views
It should be more obvious how to add titles to images
There's a related feature request from 2010, but I'm not sure that feature request is necessarily asking for the right thing.
Image tags have two attributes - alt text and titles. The alt text is used ...
14
votes
0
answers
396
views
Protocol-relative URLs to embedded images are incorrectly being blocked
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]: //...
45
votes
1
answer
553
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
54
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 ...
6
votes
1
answer
168
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:
Encapsulate ...
3
votes
0
answers
74
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 ...
4
votes
2
answers
429
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
1
answer
245
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, ...
2
votes
0
answers
139
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: ```.
...
1
vote
1
answer
184
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 ...
18
votes
2
answers
376
views
Is it discouraged to use headings in questions?
I am referring to this edit of a question of mine. Basically, all heading markup was removed and some were replaced by bold (**).
Despite being just a cosmetic change, I was wondering what the ...
3
votes
1
answer
140
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
69
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++ ...
3
votes
0
answers
64
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 ...
-10
votes
1
answer
227
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
967
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?
2
votes
0
answers
115
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:
[[...
6
votes
0
answers
75
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&...
6
votes
0
answers
67
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 ...
17
votes
1
answer
181
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 ...
7
votes
1
answer
151
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 ...