Questions tagged [markdown]
Lightweight, plain-text markup language used across the entire Stack Exchange network for post formatting.
326
questions
6
votes
0answers
49 views
Links to documentation aren't rendered properly [closed]
In documentation, when linking to a different topic / example, links aren't rendered properly.
If a raw link is added in a example, like this:
https://stackoverflow.com/documentation/javascript/...
6
votes
1answer
162 views
Documentation made Hyperlink editor function slow [closed]
Since the introduction of Documentation, the standard Markdown editor dialog,
Hyperlink, has changed, allowing to search for documentation links.
However, this change made the dialog slow to load: ...
18
votes
0answers
162 views
Adding the Table markdown from [Documentation] to Q&A [closed]
On the Documentation section, we can make our own tables with the following markup:
| Column | Column |
| ------ | ------ |
| Cell | Cell |
Using an example from SQL Server AdventureWorks, we ...
3
votes
0answers
35 views
“Side by side markdown” span strips new lines from rendering [closed]
The span element contains new lines, but these aren't show. In the main site a table is used, I think that in this case a code tag with the same background-color: rgb(209, 225, 173) and color: rgb(64, ...
4
votes
1answer
3k views
Why is the URL not recognized after the dash?
I was modifying an answer to make the links clickable. One of the links would have been:
http://en.wikipedia.org/wiki/Knuth–Morris–Pratt_algorithm
Raw:
* http://en.wikipedia.org/wiki/Knuth–Morris–...
3
votes
2answers
118 views
How can I post following link that includes fragment with java method?
I had a few posts recently when an answer required posting links with fragments, that include a method declaration with an argument list.
http://somesite.com/api/#myMethod(arg1, arg2)
That pattern ...
4
votes
1answer
261 views
Automatically indent code the correct amount under numbered lists [duplicate]
Code does not show correctly under a numbered list:
I have found some questions about this, like
Code block bug when following numbered list?, no one says that is a bug, and has a tag status-bydesign ...
42
votes
1answer
707 views
Link in the comments is rendered with semicolon
I've got the following URI:
https://wiki.haskell.org/Foldr_Foldl_Foldl'
In the post Markdown, it would be rendered as https://wiki.haskell.org/Foldr_Foldl_Foldl' which doesn't work - you have to use
...
3
votes
0answers
92 views
Implement floating images
I've seen some questions that contain screenshots from smartphones (portrait oriented) that look ugly especially in the middle of the post (usually that means that one has to scroll until they see the ...
7
votes
1answer
241 views
Cannot post question; “improperly formatted code”
I'm getting
when my question should be valid. This is only an issue on Stack Overflow. It works on Code Review, for example.
Here is what the output looks like:
Here is the code triggering ...
2
votes
0answers
66 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
1answer
77 views
Possible bug in the SO Markdown
I was browsing through question today and clicked on a question : this
It had a title which made sense but the question content :
I thought the Enter code here was a formatting issue so went on to ...
3
votes
1answer
132 views
Code Sensing is overzealous
This is in reference to my question:
It seems the code detection algorithm is a bit overzealous.
When posting the output from GDB, the algorithm said that this is code and must be treated as such.
...
57
votes
3answers
2k views
Can I start a paragraph with “1.”?
Whenever I start a paragraph with "1." it gets converted into a numbered list.
Can I somehow escape the 1 to make markdown treat it as regular text?
18
votes
3answers
492 views
Code block inside list is too close to above paragraph if a paragraph does not follow it
Good: paragraph p2 follows:
Item 1. Block below nicely separated from this text:
block
p2
item 2
Code:
- Item 1. Block below nicely separated from this text:
block
p2
- item 2
...
0
votes
0answers
92 views
Has Prettify implementation been updated? [duplicate]
Noticed that VBScript samples are coming up different now, has there been some change to the styling of the markdown syntax highlighting?
Function Hello()
'This is a comment
Call MsgBox("Hello ...
0
votes
0answers
55 views
How do you separate adjacent code blocks? [duplicate]
I was just looking at this question: changing the innertext of a nested node and assigning it the value of the first sibling of the parent node in C#.
The original poster has put an XML code block ...
-5
votes
1answer
128 views
Opening image links redirects from post [duplicate]
Update:
This got closed as a dupe, but I still wanted a popup for images.
So I made this tampermonkey script:
https://gist.github.com/alextartan/fc4961a7ec852ec88d57
(not optimezed yet, but it does ...
70
votes
3answers
2k views
Don't wrap code at hyphen
It is common when writing Haskell questions to write language extensions beginning with - as code. The editor seems to think this is a hyphenated word that it can split between two lines, even though ...
18
votes
1answer
356 views
Inconsistency of indentation of tabs between markup editor / code samples and Stack Snippets
Many real life projects contain code that mixes up tab-based indentation with space-based indentation.
In different editors, tabs don't always correspond with the same number of spaces. For example, ...
7
votes
0answers
54 views
Adding a link to a code with brackets escapes it automatically
Recently while formatting a post, I noticed that the brackets in the code (formatted by using `code`) are getting escaped automatically, when we give a link to it.
Take this as a sample callMe(\[\]). ...
0
votes
0answers
27 views
Why sometimes source formatting does not work? [duplicate]
Here is an example. Code indented 4 spaces - not being properly formatted (link to edit, to verify that it is indented 4 spaces).
What's the reason?
2
votes
1answer
174 views
Markdown Preview Rendering Bug on Large Posts
Answer have since been modified to workaround this bug but the behaviour can still be seen by looking at this specific revision edit.
https://stackoverflow.com/posts/35985827/edit/02e154d6-eee2-...
4
votes
1answer
98 views
Adding image reference in markdown creates excessive text [duplicate]
Some new behavior I've noticed in the past couple weeks is that whenever I click on the "add image" tool in the toolbar at the top of the standard editing view, a few extra (and unnecessary?) ...
54
votes
1answer
2k views
How do I remove excess indentation on my code blocks?
This happens to me a lot on Stack Overflow: I paste in some code, but it is indented to the right far too much. This requires cumbersome horizontal scrolling to view all of the code, and oftentimes ...
7
votes
1answer
231 views
How do I include literal asterisks in italicized text? [duplicate]
Is there any way I could make the following sentence be formatted italic?
*.h or *.hpp for your class definitions
I tryed so far:
"**.h or .hpp for your class definitions"
**.h or .hpp for your ...
4
votes
0answers
79 views
Reference style links immediately following tag links are broken
The problem
It seems that if a reference style link ([text][url]) follows a tag link ([tag:foo]) then the reference style link break. Example:
Inline link following a tag link (unbroken)
[tag:a-...
1
vote
0answers
221 views
Unable to post my question because it is not properly formatted
I've seen this question asked and answered various times, but I can't solve it with the given information. I have code that displays just as I want it in the preview. But more than an hour of trying ...
2
votes
2answers
199 views
How to write the bold * star? [duplicate]
The longer I am here, I've gotten used to formatting rules here.
But one thing is still unclear for me. You can write a bold text by surrounding it with ** two stars at both sides. Like **I am fat**.
...
-2
votes
1answer
63 views
How to refer to main site tags in Meta SO comments or posts? [duplicate]
As asked in the title.
Using the [tag:xxx] syntax, renders a tag, but won't refer to that tag in the main site, but at Meta Stack Overflow.
Is there a shortcut syntax to provide tag links from the ...
4
votes
2answers
73 views
Italicize a text containing *
I was writting a post mentioning * in SQL SELECT query when I noticed that I can't make it Italic as the editor confused using * with an Italic symbol.
How can I make this text italic:
write column ...
3
votes
0answers
84 views
Supporting Math format [duplicate]
Several times we want type math formula in the fields such as the time complexity or recursive function. For example we need bellow formula:
∑{i=1to n}∑{j=1 to n} A_{i,j}*B_{j,i} or
F_{n+1}=F_{{n-1}^...
-14
votes
1answer
90 views
Make code blocks containing URLs automatically <!— language: lang-none -->
As I frequent the java tag, I see this quite often:
http://www.example.net/app/showthread.php?tid=38798742343
As you can see, everything behind the // gets displayed in a grey color because Stack ...
-11
votes
2answers
181 views
Initial lines of code block are not formatted, cannot submit post
I cannot get my question accepted, because when I paste a code block, the first lines (import statements, class def.) are omitted from the code block, as is the final }. Also, weirdly. the * is ...
2
votes
1answer
71 views
Bug in markdown rendering engine
If I want to mark as italic a paragraph within an unordered list then I can do so only once. Any subsequent paragraphs marked the same way show visible asterisks instead
For example, I wanted the ...
25
votes
3answers
3k views
Is there a way to put code blocks in block quotes?
I posted this answer using text from this python docs page.
I tried using block quotes for the text, but if I indent the code, it breaks the block quote, and if I don't indent it, it doesn't display ...
1
vote
2answers
375 views
How to add “target='_blank'” to a hyperlink on an answer?
I want to write an answer but I can't find a way to include a link to another answer and have that link to open in a new tab of the browser.
I don't know where to put the `target="_blank" property ...
37
votes
4answers
765 views
How do I format my data as a table with doubled line separators in my posts?
Can anyone tell me how to format a table like the below? I have copied the structure from this question
╔════╦══════╦════════════╦═════╦════════════╗
║ ID ║ NAME ║ BIRTHDAY ║ AGE ║ DEATHDAY ║
╠═...
2
votes
1answer
92 views
Backticks in paragraphs
As you know, when you have html tags such as <html> in a post, you will need to put backticks around them, otherwise they wil come out invisible. However, I just found out by accident that when you ...
2
votes
1answer
76 views
Display of spreadsheet values in Stack Overflow
I would like to insert spreadsheet values into the body of Stack Overflow questions like here.
8
votes
0answers
48 views
Clarify that the tag-wiki excerpt is plaintext, and don't pretend otherwise [duplicate]
As many visitors on meta have probably painfully learned from painful experience, tag-excerpts are plain-text.
Not that the editing-help or anything else hints at that:
The usage guidance, or tag ...
15
votes
0answers
367 views
Finding unescaped html tags in Stack Overflow posts
I've been looking at "hidden messages" in posts lately, where the question appears to read, for instance
Should I use or ?
and the real question becomes visible only when editing:
Should I use &...
18
votes
1answer
2k views
Strikethrough Markdown Not Working
Strikethrough is not working properly when rendering on the site, but works in preview. I have found 2 ways striking through in markdown (as seen here):
I belive the way the following markdown ...
-5
votes
1answer
144 views
Why are <> tags not allowed in the body? [duplicate]
I have noticed that when type tags with <> they are deleted on the final body. Why is that a thing? URL purposes? Flood?
3
votes
2answers
116 views
Multiple levels of indent in markdown?
I know that I can use Ctrl+k to change:
void chengXu()
{
string xinXi="niHaoShiJie";
Console.WriteLine(xinXi);
}
into
void chengXu()
{
string xinXi="niHaoShiJie";
Console.WriteLine(xinXi);
}
Let's ...
5
votes
0answers
277 views
Stack Overflow Markdown CSS for text editors
Certain text editors (e.g. Intellij IDEA) allow you to customise the preview of the markdown with CSS.
There are CSSs available for GitHub Markdown Style e.g. https://github.com/sindresorhus/github-...
32
votes
0answers
284 views
Should the markdown documentation mention that only three levels of headers are supported?
I was re-purposing the markdown preview in SO to check some markdown I was composing, and noticed that # level headers were supported to three levels deep only:
Header 1
Header 2
Header 3
Header 4
...
3
votes
0answers
43 views
Help center links in comments should include “how-to-ask” option
This feature for comment formatting is really useful:
[help], [help/on-topic], [help/dont-ask], [help/behavior] and [meta-help] – link to frequently visited pages of the help center. Link text ...
1
vote
1answer
322 views
What is sign `<` while posting
I noticed I can't use sign < while posting.
It happened when I tried to write this text
Dictionary<string, int>
but in preview it was shown as
Dictionary
Obviously currently these are ...
4
votes
1answer
72 views
Comments markdown parser: bold nested in italic is rendered as plain italic
Bold nested in italic is rendered as plain italic without the bold markdown being interpreted in comments. See the examples and the comments:
Not working
_Italic and **bold**_
is rendered as Italic ...