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].
41
questions with no upvoted or accepted answers
45
votes
0
answers
711
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 |
...
30
votes
0
answers
255
views
Make tabs actually visible in code sections of posts
Today in a Python question, the OP had an issue where some code was not accessible because of a spaces vs tabs issue.
Somehow, he had the first part of his code indented with tabs, and the second ...
25
votes
0
answers
475
views
Comment formatting is not working with & (and other special characters) sign(s) after letters/words
When using the & sign in a comment, the formatting is not parsed correctly for example,
SO is a Q&A site.
The comment doesn't seem to get formatted as it is supposed to as can be seen in ...
17
votes
0
answers
355
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
111
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 (...
16
votes
0
answers
622
views
Wrong parsing of ` =>` in comments
I wrote this comment:
@Kusalananda I was thinking that `sqlite3.no value` would be taken away
with matching the first ` =>` in ` => /some/path/php/extensions/no-debug-
non-zts-20160303 sqlite3....
15
votes
0
answers
325
views
Editor preview disagrees on link title
The live preview of the post editor breaks links that contains two quotes, one of them in the end:
[example](http://example.com?test=param"title")
While this is rendered on the server into the ...
14
votes
0
answers
203
views
Snippets comments are incorrectly parsed inside code blocks producing strange output
I was editing the following question, as the code blocks needed indenting, and noticed there was an problem with the html comments.
Post: setOnItemClickListener for listview
Here is the code I had ...
13
votes
0
answers
312
views
Post lacks formatting when being edited
This answer has perfectly formatted code in the beginning. However, when I hit the edit link it turns out, that code is no longer formatted, because it starts without first four spaces.
What am I ...
11
votes
0
answers
186
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 ...
11
votes
0
answers
331
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 ...
10
votes
0
answers
181
views
Formatting error in indented bullet list with sublist and non-list members
The following renders incorrectly for me:
A bulleted list item
A bulleted sub-list
... followed by a paragraph which is indented to be underneath the top-level bulleted list.
Here's how it's ...
7
votes
0
answers
86
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 ...
6
votes
0
answers
77
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 ...
6
votes
0
answers
95
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....
6
votes
0
answers
90
views
Preview does not render code blocks as code if they contain a paragraph separator (unicode decimal 8233, hex 2029)
If you edit this question, you'll see the problem.
Here's a code block with a paragraph separator char between "foo" and "bar":
var str = "foo
bar"
var also = "other lines"
The above line renders ...
6
votes
0
answers
174
views
The rendering of language regex in a markdown code block is somewhat monotone
In my answer to a question about regex's I put this language element in my markdown:
<!-- language: lang-regex -->
[^;]+=(?<val>[^;]*)
This rendered as the crimson text we typically ...
6
votes
0
answers
132
views
Stack Snippet comments not showing up correctly when part of code
I'm trying add a "stack snippet starter pack" for tag wikis for specific libraries so there's a ready-to-go template when adding a tag that a user (or answerer) could copy and paste into their ...
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 ...
5
votes
0
answers
70
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 ...
5
votes
0
answers
78
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 ...
5
votes
0
answers
96
views
Markdown with fenced code blocks within lists has inconsistent previewed/final renderings
About the bug
This is a bug whose effects you can see in the revision history of this answer. Specifically, it’s about the edit that created Revision 15 (click “side-by-side markdown” to see that ...
5
votes
0
answers
152
views
Markdown syntax does not correctly render certain tags (like [not]) in the preview
According to the Markdown help, [tag:not] should format as a tag, but it doesn't in the preview while you are editing a post. What is wrong with the "not" tag?
not-a-tag is correctly formatted as a ...
5
votes
0
answers
50
views
Tag wiki preview looks ok, live changes look crap
We're adding a FAQ to the c tag wiki. I initially did this with a copy/paste from a meta post to the wiki.
The meta post looks ok even though it only contained raw URL to the posts. The site replaced ...
4
votes
0
answers
85
views
Bad closing <a> tag earlier on causes last link in post to be not a link anymore
I just came across a puzzling issue while editing somebody's old post to update a broken link.
Always the last link in the post was not clickable, it wasn't even a link, it was simply text.
It turns ...
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 '\\...
4
votes
0
answers
265
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 ...
4
votes
0
answers
65
views
Markdown converts formatting characters in raw URLs, rendering the displayed URL incorrect
Example: https://example.com/repo/__tests__/asdf.js
https://example.com/repo/tests/asdf.js
The underscores in the URL should be preserved, but are instead used to bold part of the URL. This can be a ...
4
votes
0
answers
49
views
Additional spaces displayed differently in markdown and rendered output diff
When removing one of two consecutive spaces, like here before the word "declaring", rendered-output-diff highlights the entire subsequent word "declaring", whereas the markdown-diff more accurately ...
3
votes
0
answers
113
views
How is markdown in discussions being converted to HTML?
Posts on SE use Markdig on the server side, and markdown-it for the client-side preview. But it seems like threads under discussions are behaving slightly differently. For example, underscores and ...
3
votes
0
answers
75
views
Code snippet breaks Markdown parser
When editing a post, the Markdown parser in the Preview seems to break down after a code snippet. Everything (except the pre-formatted text) following the code snippet in Example A below appears ...
3
votes
0
answers
85
views
Bullet is suppressed (on certain browsers) when list item contains code inside of a blockquote
When you're trying to quote multiple pieces of code, you might use a bulleted list, where each item in the list is a blockquote that contains a code snippet. To wit:
Here's my list:
- > printf(...
3
votes
0
answers
32
views
Can we have an option about placement of the HTML answer while editing an answer?
The Stack Overflow answer text-area is reasonably good, but when I am writing a moderately sized answer (and more importantly, reviewing it for correctness and formatting), at times it is cumbersome ...
3
votes
0
answers
44
views
The question in suggested edits is displayed differently from the regular question view
This question CollectionAssert.Contains(myList, myItem) != Assert.IsTrue(myList.Contains(myItem)) contains a link (to msdn) that is not 'clickable' i.e. its plain text only.
I edited the question and ...
2
votes
0
answers
162
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
119
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 ...
2
votes
0
answers
83
views
Markdown rendering nested scrollbox in question content?
This question has a scrollbox inside a scrollbox in the content, which seems like it shouldn't be allowed under normal circumstances
It's about halfway down the searchbar, here's a screenshot for ...
2
votes
0
answers
73
views
The markdown preview shows wrong formatting whereas the Markdown shows it right
The question formatting when edited using markdown(editor) shows it correctly in the editor but wrongly in the markdown preview. But then again appears correctly in the question. Reference question : ...
2
votes
0
answers
351
views
HTML tags in the body are not showing up
In this question on SO the author was asking a question with the following text:
between > and </ of any tag.
Those "greater then" and "less then" symbols are showing up only if you backtick ...
2
votes
0
answers
59
views
What is wrong with the vertical spacing in bulleted lists?
There is a related question: rendering of lists. It is marked as "status-completed" however but I am not sure if it is the same problem.
Now I am on Windows+Firefox and I see such a picture:
...
1
vote
0
answers
161
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", ...