Questions tagged [markdown]
Lightweight, plain-text markup language used across the entire Stack Exchange network for post formatting.
353
questions
12
votes
0
answers
97
views
What causes these list item marker display issues for content that begins with a code block?
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 ...
1
vote
0
answers
62
views
Tables with images [duplicate]
When writing a post, it renders a table with images just fine:
But once posted it doesn't render the table:
|test|blah|
|-|-|
||test|
3
votes
0
answers
31
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 ...
1
vote
0
answers
42
views
Table formatted correctly in preview, but not when question is posted [duplicate]
There appears to be a slight inconsistency in the rendering of tables in Markdown. If a table isn't preceded by an empty line, then the table is rendered properly in the draft editor, but not when the ...
4
votes
0
answers
258
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
180
views
How can I add foldable code or text when answering someone’s question on Stack Overflow?
How do I add foldable code or text on Stack Overflow when writing a question or an answer?
<details>
<summary>Click to expand!</summary>
```HTML
<h1>Hide this until someone ...
-12
votes
1
answer
190
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
77
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 ...
3
votes
2
answers
317
views
How can I create a Table of Contents (ToC) to content within a Stack Overflow article? [closed]
I am working in Stack Overflow for Teams - Enterprise (hosted in my company).
The issue below is encountered when entering longer posts, in the form of articles.
Markdown has no standard defined to ...
12
votes
0
answers
102
views
Markup shorthand to link to another question
In comments, I frequently find myself linking to other questions, usually because something is very similar to a frequently-asked question but I'm not quite confident enough to deploy the dupehammer. ...
-10
votes
1
answer
137
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 ...
67
votes
6
answers
2k
views
Should code be edited so that it is visible rather than being in one long line?
In many instances, I have seen code that is poorly formatted or all in one line (like below using R). Is it appropriate to edit the code so that it is more legible? I know in some instances these are ...
1
vote
0
answers
113
views
Why are we unable to disable the new Markdown editor in Private Teams?
In relation to a question I rose 8 months ago, and a similar one
@Brad Mace rose 5 months ago.
The feature is in an alpha state and an option to disable it exists in the public Stack Exchange ...
10
votes
1
answer
107
views
Uneditable text in an answer? [duplicate]
I stumbled onto this answer. It has some fluff I wanted to edit out. Specifically, this "Hi @dany:" in the start.
But, to my surprise, that phrase disappears when entering edit mode. It ...
10
votes
3
answers
221
views
What is the best way to enter mathematics into the Stack Overflow question body?
I want to be able to enter equations and other mathematics notation into a question body here on Stack Overflow. I haven't found anything about that directly, but I have seen stuff about using HTML ...
4
votes
0
answers
60
views
Is it possible to get the raw Markdown of a post in-browser without trying to edit it? [duplicate]
I'm writing some notes down for myself, and these notes involve citing parts of a Stack Overflow post with a lot of Markdown. Manually copying the text and pasting it into my notes does not preserve ...
35
votes
2
answers
1k
views
Is formatting that is designed solely to call attention to a question or answer allowed?
I strongly agree with the answers in, "Is using 'header' markdown okay in answers?" I use headings quite frequently in my answers, but generally only an H4, and only when there are multiple ...
3
votes
0
answers
55
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
98
views
Multiple programming languages answer structure [duplicate]
As an iOS developer, I see a lot of old answers in Objective-C, often accompanied with new Swift version, which may be in many different Swift versions too (Swift 2, Swift 3, etc.)
I'm sure this is ...
4
votes
0
answers
165
views
Does the blog comments section support markdown?
I made a comment on the 'Privacy is an afterthought in the software lifecycle. That needs to change.' article and the formatting is very strange. I can't tell if I messed it up or if it just doesn't ...
15
votes
1
answer
321
views
Disabling new editor in our Teams site
How can I get rid of this new editor? Is that a paid feature? An editor that can't handle basic rearrangement of text is just in the way, and there are so many ways it can go wrong. Markdown + preview ...
2
votes
0
answers
66
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 ...
-9
votes
1
answer
170
views
Can I add an image to a comment? [duplicate]
In the above image, the user @timbillstrom is telling us how to add an image... Can someone elaborate on where exactly do you put the image (assuming it's a Name.png file on your laptop)?
My basis for ...
10
votes
3
answers
406
views
Text aligned right and left in the same line
I'm almost certain that I've seen some post in the Q&A that had, in the same line, some text aligned to the right and some text aligned to the left, kind of like a page header.
I've been looking ...
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.
```
...
8
votes
1
answer
233
views
Stack Overflow private for teams does not offer preview of question
Question preview is a useful feature, but in the Stack Overflow for team (private), this feature is disabled.
The same markdown in the classic Stack Overflow (public), show the expected preview:
5
votes
0
answers
91
views
Bug (?) with stack-snippets within three backticks
First off: I'm not sure if that's actually a bug. Just seemed really odd.
I was reviewing some suggested edits and came across the following edit (which I rejected):
Then I decided to view the ...
3
votes
1
answer
136
views
Why does a table on Stack Overflow have a difference in the table's perspective when editing/asking question and in an actual question? [duplicate]
I have been trying to create a table in a Stack Overflow question and am struggling to get my table right.
Here's the perspective in the Edit view,
However, when I hit Post Question, the table is ...
2
votes
0
answers
93
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 ...
13
votes
0
answers
98
views
Why aren't quoted links consistently converted to hyperlinks?
When reading this question, I noticed a link that is not a link:
However, the link does get rendered correctly in the edit mode preview:
This seems to indicate two problems:
Quoted links don't get ...
5
votes
1
answer
150
views
Syntax highlighting does not appear in questions tagged [laravel-7]
For some days I have been noticing that on Stack Overflow the Markdown content is rendered as black text only.
And this is how I actually see this page:
4
votes
1
answer
214
views
Is there a way to write a single backslash in monospace (code) format in comments? [duplicate]
In a comment on this question I couldn't figure out how to write a single backslash in code formatting: \. Is there a way?
4
votes
1
answer
99
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 ...
29
votes
0
answers
404
views
Rendered view requires blank line before (and after) tables, but preview accepts both
I saw a wrong table layout, the poster did do this, and it looked wrong:
Table x
| Name | Category |
| ---- | -------- |
| A | High |
| b | Medium |
| c | Low |
Changing this (...
28
votes
1
answer
456
views
A Markdown table is detected incorrectly as a badly formatted code block
I tried to post this on the new tables feature thread on Meta Stack Exchange but I don't have enough reputation to post an answer or even a comment on the question. It might only be a Stack Overflow ...
5
votes
1
answer
111
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 ...
7
votes
0
answers
68
views
Triple-backtick code blocks don't get blockquoted correctly
Suppose I have a code block like this contrived pseudocode:
```
Here {
is
}
my code
```
When I select the whole block including the backticks and then use try to blockquote it using the button or ...
36
votes
4
answers
1k
views
Should we disapprove of uploading images of tables when asking a question?
Since the introduction of the table markdown should people still be using images of tables instead of the markdown? Or should we be enforcing the use of the new markdown? If we find a question that ...
5
votes
1
answer
208
views
Is it possible to make a link to an IRC channel?
Out of curiosity, why does [bla](ircs://chat.freenode.net/archlinux) not produce a link? And I how can I actually make such a link work?
7
votes
1
answer
118
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 ...
11
votes
1
answer
562
views
Markdown for quoting documentation with indentation?
Answering this question, I want to quote Python documentation. I tried a few different ways of doing Markdown to keep the tabs (indentation) in the quote and ended up with the fairly ugly version ...
6
votes
0
answers
134
views
Stack Overflow rejecting well-formatted code in question
Stack Overflow is rejecting a post that I am trying to create regarding Python. It complains that my post has improper code formatting, for reasons that I don't understand, even though the preview ...
-5
votes
4
answers
268
views
How can I insert a PHP code snippet in markdown of Stack Overflow? [duplicate]
I want to write a PHP code snippet in the question or answer. I searched that but Stack Overflow can insert only HTML, CSS, JavaScript snippet code.
How can I insert a PHP code snippet like below?
...
13
votes
2
answers
533
views
What's the difference between the two code formatting styles (code-fences vs indented blocks) regarding syntax highlighting?
I have been using code fences to highlight my code in SO
```javascript
```
Recently I have noted that my code is being edited and the below syntax is being used
<!-- lang-js -->
I have seen ...
23
votes
2
answers
910
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 ...
8
votes
2
answers
183
views
How do I put a code block in a comment that starts and ends with spaces?
I was writing a reply in a comment just recently and I realized I could not turn something into a code block if it started and ended with a space. The particular comment in question is here. After a ...
7
votes
0
answers
95
views
Add shorthand links for specific meta faq to the markdown editing help
So a bit of context. There are many times I want to help question askers on SO (or commenters) with their problems but their question contains details that they should fix. Now, this is normal but the ...
4
votes
1
answer
183
views
Heading underline markdown rendering differently in preview to published
I came across this answer which appeared to have rendered incorrectly.
Editing it, the answer looked fine in preview so I suspected it just needed to be rerendered, but this was not the case. The ...
-11
votes
1
answer
106
views
Converting link comment into a standard format [closed]
I have seen many comments of the type <just a link here>. I don't know how useful this feature would be, but can we instead standardise these types of comments and change them to take a look at [...
4
votes
1
answer
72
views
Insert link is not working in Markdown Editor on Stack Overflow
I was editing one of my old questions and I wanted to add a link for reference, but I saw even if I was adding all the Markdown content correctly, the editor was not converting them to the traditional ...