Questions tagged [markdown-rendering]
Questions relating to the rendering of markdown. Use this tag when something is rendering different from the way you expect it to, among other things. Most uses of this tag should also have the tag [markdown].
172
questions
1
vote
1
answer
119
views
Masked links with square brackets aren't rendered in comment Markdown
The usual referencing style for the C++ standard is [basic.lookup.elab] p2 (with some variations).
To produce this, you need two write [[basic.lookup.elab] p2](https://eel.is/c++draft/basic.lookup....
28
votes
2
answers
692
views
Link to a specific spot in a Stack Overflow question/answer
Following this Stack
Overflow answer, I added a named anchor ElimRestErrs to a heading in an answer I posted:
# <a name="ElimRestErrs">Eliminating the rest of the errors</a>
The ...
7
votes
0
answers
84
views
Lack of a closing </sub> in a paragraph results in a later <sub></sub> pair not being applied
On the question How to convert a string of space- and comma- separated numbers into a list of int?
Note the comment I have added at the end of the page source. If I try to remove the comment and its ...
0
votes
0
answers
76
views
Table formatting broken in actual answer but works in preview [duplicate]
This answer has broken table formatting:
But then when I click Edit and not change anything the edit preview shows fixed table formatting:
This bug interferes with my ability to fix table formatting ...
0
votes
0
answers
61
views
Comment rendering bug with inline code [duplicate]
I just encountered this beauty:
It looks like inline code does not get rendered properly in the comments by not breaking succeeding spaces or some sort of escaping problem.
2
votes
0
answers
43
views
Broken snippet rendering [duplicate]
This question (in revision 1) has a really weird StackSnippet content that doesn't want to display properly.
In the question it renders nested scrollbars:
Scrolling down to the bottom of the outer ...
6
votes
1
answer
162
views
Markdown rendering bug - different between preview and actual
While answering Is there something wrong with common mark?, I seem to have discovered a bug in the rendering of markdown.
**b.**​a should render as shown in this image:
and indeed it does ...
6
votes
0
answers
75
views
Wrapping bare URLs in <sub>/<sup> tags breaks hyperlinks in the generated HTML (not in the preview)
I just edited Common elements comparison between 2 lists to add some links from the comments to related questions in a "see also" section - specifically, these links:
In Python, how do I ...
2
votes
0
answers
90
views
Bug on Safari: list starting with a code block fails to display the bullet point
Given the below formatting,
on a Mac Safari, version 15.6.1 (17613.3.9.1.16)
as well as on an iPhone Safari, version 15.6.1
This Markdown:
- ```
code
```
Loses the bullet on Safari:
On your ...
2
votes
0
answers
100
views
Weird Markdown rendering glitch
I just made an edit to Convert Python escaped Unicode sequences to UTF-8, which should appear as "removed during grace period" in the edit log. I added a newline before and after the fenced ...
4
votes
0
answers
43
views
Sequences of multiple backslashes rendering differently in preview vs published
I came across an answer with the following raw markdown source:
\\\ is an escape sequence that is === \
\? is not an escape sequence and is === \?
so '\\\\\\\' is '\\\' followed by '\\\' which is '\\...
-13
votes
1
answer
97
views
No limits on quote nesting [closed]
broken layout
I think that a large number of nested quotes shouldn't break the layout of the site Stack Overflow.
4
votes
1
answer
209
views
Text fragment link is not rendering correctly
If I select some text in a post and try to turn it into a link (CTRL + L) the render isn't formatting it correctly:
https://docs.microsoft.com/en-us/powershell/scripting/developer/module/how-to-write-...
2
votes
1
answer
132
views
Mixing monospace and normal text doesn't look nice
Sometimes I want to pluralize a Python class name, but the plural "s" should not be monospace, since it's not code. For example this answer:
The letters should line up.
5
votes
2
answers
356
views
Can we close Markdown rendering bugs against a related but maybe not fitting duplicate
We currently have 27 open bug reports for markdown rendering and most of those are of the type:
The preview shows X, after posting it shows Y
where X and Y can be any markdown/html that you can ...
1
vote
0
answers
150
views
Stack Overflow URLs in double quotes in answers are not replaced by the name of the question
Whilst quoting a super useful answer in a reply, I enclosed the URL in double-quotes "https://stackoverflow.com/questions/73070115/why-is-the-middleware-not-processed-on-404-page-in-django", ...
11
votes
0
answers
143
views
Different Markdown rendering between preview and saved result
I have this Markdown content to render an asterisk in italic:
In the preview it looks good and the result is as expected, but when I save the changes I get:
Why doesn't it render correctly when I ...
12
votes
0
answers
146
views
What causes these list item marker display issues for content that begins with a code block? [closed]
Yesterday I made an edit that produced some unexpected output. It seems that when an item in an ordered or unordered list begins with a code block, in (at least) Firefox (but not Chrome) the list ...
4
votes
0
answers
40
views
Table shows well on editing window but turns into text when posted [duplicate]
I just wrote a post over here about SQL (yes, it is a basic question - I know very little about SQL). And while the preview/editing screen correctly shows the table, it disappears when actually ...
4
votes
0
answers
261
views
Post with an HTML-like tag in the body renders correctly in the preview, but not in the post
This answer renders as such when editing:
However, when submitted, the tag does not render (or appear in the http response):
I am not sure where's the appropriate place to file bug reports, but ...
-12
votes
2
answers
4k
views
Give a code block a filename
It's relevant and useful to include the name of the file that a code block should go in. For example, an update to a Next configuration would go in the next.config.js file, an NPM script would go in ...
1
vote
0
answers
79
views
Embedded table is not showing correctly in question [duplicate]
I am trying to added a couple of embedded tables in this question using Stack Overflow's suggested format.
When I or another user open the edit window, the table presents correctly in the question ...
1
vote
0
answers
54
views
Broken rendering in comment with code formatting [duplicate]
How to do deep copy for the below class in Java
The code formatting has escaped and gone mad. I am not sure what tag(s) to use.
On desktop, OS X, and Chrome 98.0.4758.102.
-11
votes
1
answer
164
views
Formatting code with backticks hides first line [duplicate]
Something I've noticed when editing the first posts for a lot of people is that many people use the 3 backticks method to enclose a code block that they copy and paste in.
Since the first line is ...
6
votes
1
answer
136
views
Question preview shows one thing but the end result is different
What is happening
I just realised my answer was being wrongly rendered. The title is rendered as ### title and not in the correct format.
I went to edit it, but the preview shows it the way I was ...
3
votes
1
answer
219
views
Possible markdown rendering bug (strong/bold text in code blocks) [duplicate]
If you enclose text with two asterisks, it will be displayed in bold letters. This shouldn't be the case in code blocks (I assume). When you edit or ask a question, the preview is displayed as ...
2
votes
1
answer
214
views
Markdown headers with hash are not rendered correctly
While reading an answer I found a dead link, and I've just replaced it with the correct one. Now the link is fine, but somehow I've broken header formatting, although I didn't change anything apart ...
0
votes
0
answers
87
views
Comment format seems not to be working correctly [duplicate]
I've just added my last comment to this question and its comments, but when I try to emphasise "Product" in the word "SumProduct()", it seems not to work.
Is that a bug or am I ...
3
votes
0
answers
59
views
Is it possible to have a backslash by itself in preformatted text? How? [duplicate]
Recently when writing a comment, I tried to put a backslash (\) by itself in preformatted text (surrounded by `).
I couldn't find a way to make that work.
With a single backslash: \ - this apparently ...
4
votes
0
answers
58
views
Table not being rendered correctly in final post [duplicate]
I included a markdown table in my post (How to use scoped APIs with (GSI) Google Identity Services)
This is what my table looks like in the editor:
This is the edit preview:
But in the final post it ...
3
votes
0
answers
78
views
Preview of tables doesn't match the live view [duplicate]
I went to edit this question to improve the formatting of the tables, since it looked broken:
But when I went to edit it, the preview showed it to be correctly formatted:
This seems to be ...
11
votes
0
answers
307
views
Inline formatting no longer works with syntax highlighting
Sometimes I use HTML <pre><code>…</code></pre> instead of Markdown ```…``` / ␣␣␣␣… blocks for code blocks with inline text formatting. I have noticed recently that such inline ...
6
votes
0
answers
94
views
Mismatch between preview content and saved content wrt newline separator
How to reproduce:
Edit or create a new answer, paste two links, use \ between them so they show in different lines. Like this:
https://flathub.org/apps/details/net.sourceforge.Pdfedit\
https://flathub....
2
votes
0
answers
51
views
Is there a test of a Github snippet integration on meta? [duplicate]
When reading a hot meta topic, I noticed that a mere link to a line of source code in a Github repository shows up as a preview of that code.
This is what it looks like on the main page:
This is what ...
5
votes
0
answers
105
views
Possible Markdown Code Fences Rendering Bug [duplicate]
In this answer (now fixed, see screenshot) code fences ``` are rendered like inline code. However, editing preview renders it correctly.
Source:
Killing all other node processes worked for me
ie.
```
...
6
votes
1
answer
174
views
Rendering issue in code before --
c / c++ most optimized solution needed plz provide the solution (is a terrible question), but has a section of the question where the last line of a code list before a -- is bold:
The markdown is
# ...
5
votes
0
answers
87
views
Backquote no longer works within <sup>, whereas <code> does
Some time ago this worked. Now backquotes are just displayed as backquotes as in:
Fine print with backquoted code and using markup code
Here on MSO it works... but as @Yatin remarks, it is sensitive ...
2
votes
0
answers
96
views
Final answer rendering is different in the editor preview [closed]
I was looking at this question and I found this answer. Since the answer can be edited to look like a list, I tried to edit it, but to my surprise the formatting in the editor preview is different and ...
5
votes
0
answers
69
views
URL rendering bug in answer editor
Reproduce by clicking the edit link under https://stackoverflow.com/a/66326205/2943403.
Notice that in the rendered view of my answer, the link to another SO answer is a clickable hyperlink, but after ...
16
votes
0
answers
315
views
Accessibility concerns about Stack Overflow
When writing Markdown on Stack Overflow, you can create HTML section headings, also known as <h1> or <hx>, using '#' 1–6 times. This is very useful for questions and answers because you ...
16
votes
0
answers
108
views
URLs with underscores are broken in preview, but not in actual question
The following URL
https://github.com/python/cpython/blob/master/Lib/test/__init__.py
live rendering: https://github.com/python/cpython/blob/master/Lib/test/__init__.py
is shown like this in preview (...
4
votes
1
answer
102
views
Markdown broken on edit?
I just made an edit on the following question: Is there a random number distribution that obeys Benford's Law?. The parts of the question that I didn't edit are displaying are just fine, but a ...
7
votes
1
answer
116
views
Not correctly formatted hyperlink
There seems to be some problem with the handling of links after <h1></h1>. It wasn't there some months ago. The problem is here and on the main site (I've noticed because I opened an old ...
43
votes
0
answers
597
views
Rendered view requires blank line before (and after) tables, but preview works regardless
I saw a wrong table layout where the poster did the following and it looked wrong:
Table x
| Name | Category |
| ---- | -------- |
| A | High |
| b | Medium |
| c | Low |
...
5
votes
1
answer
132
views
CommonMark incorrectly italicizes underscores in code blocks
In this answer I see
Notice how the text in the code blocks between underscores is italicized (or rather, in this font, oblique).
Here is the same text copy/pasted into this question (where I ...
10
votes
2
answers
245
views
Literal tab in code block renders as four spaces
I think this used to work correctly before because I have memories of testing this when responding to makefile questions before, where proper tabs are crucial. (That would have been before the switch ...
7
votes
1
answer
150
views
Code block is rendered incorrectly (partially in italic after underscore) [duplicate]
I noticed a strange rendering of the question text.
Here is a screenshot. Note how the code block starts as expected until the underscore character and then turns into italic. I'm using Chrome on ...
6
votes
0
answers
73
views
Bug in heading when using quotes [duplicate]
Using heading in quotes has some strange behavior, for instance:
>Quote title
>---
>Rest of the quotation
The above should make Quote title a header, and indeed it does in the preview ...
23
votes
2
answers
915
views
Should I fix the formatting if it changes the meaning?
I was going to fix a simple typo in this answer. In its first revision it goes like this:
If you want to get an array of ints, with values form 1 to 10, from a Stream, there is IntStream at your ...
5
votes
0
answers
74
views
How to fix markdown that renders fine in edit mode
I came across this answer and noticed its main code block was rendering a bit funny. I assumed this was something wrong with the answer I could edit to fix up.
However after clicking Edit, it looks ...