All Questions
Tagged with markdown code-block
27 questions
1
vote
0
answers
46
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 ...
3
votes
0
answers
59
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 ...
2
votes
0
answers
69
views
False code detection from the outside code-block when inserting the reference [duplicate]
Inserting the reference after the code block causes an error.
I have to use a line break to solve it, but want it to be possible not to use hacks, because after the code block I write not code but ...
8
votes
2
answers
205
views
How can I find posts with particularly large code blocks in a non-code-based site?
From time to time in Space SE a question or answer about a calculation will need to share a significant amount of tabular data, say 100 or 1000 lines. It needs to be forever available to future ...
1
vote
1
answer
71
views
Why are these 2 code tables rendered differently?
When rendered in dark mode, one table has golden borders, the other one has white+grey borders. Despite they are using the same markdown, only content is different.
Please explain why.
My question is ...
4
votes
2
answers
5k
views
How can I properly embed a code block into a Markdown table cell? Alternatively, how can I insert newlines into a code block without using `Enter`?
I have the following fenced code block:
```<br>a = 1<br>b = 2<br>```
I would like to replace the <br>s with some other character ?, so that it acts like a newline, so that the ...
20
votes
0
answers
201
views
On some sites, the closing fence is visible if post ends immediately after a code block that has an empty line
An example of the bug is shown in the screenshot below, which occurred while editing this answer:
The issue goes away if a trailing line break is added.
A minimal reproduction of the bug:
Ask on ...
1
vote
1
answer
3k
views
How to write a ` symbol inside a code block [duplicate]
How can I write this symbol: ` inside a code block in just one line?
As the code blocks are defined by: ```, I am not able to write one of these inside the code block.
2
votes
1
answer
51
views
Code sample could not be shown on the page
The code samples could not be showed in the page and the markdown editor is also not working well in my browser.
I'm using Chromium (Version 71.0.3578.98 (Official Build) Built on Ubuntu, running on ...
9
votes
1
answer
167
views
Weird things happening with the new fenced codeblocks
If I type this code using the new fence-style code blocks, it displays fine:
#include <stdio.h>
int main(int argc, char** argv)
{
int i = 6;
while(i --> 0) printf(i);
return 0;
}...
-4
votes
1
answer
144
views
Add a way to highlight/emphasize changes in code [duplicate]
Answers to coding questions often use a minor change to the example code. But because it's code, you cant emphasize those differences with markdown syntax.
See example below where I've done some ...
2
votes
0
answers
22
views
Unnecessary backslash characters added when hyperlinking code block with brackets `[]` [duplicate]
While writing a post, if the hyperlink tool is used on a code block containing [ or ], the tool will add extraneous backslash \ characters in front of the brackets.
Example: user:351462 [support] -> ...
16
votes
0
answers
205
views
Insufficient padding on one-line markdown pre tag
When scrolling through a code-block that is one line high on OSX the scroll bars appear when you hover over to scroll and obscure over half of the text.
Chrome:
Firefox:
It's very distracting. It ...
9
votes
0
answers
55
views
Code blockquotes on beta sites add extra spacing to bottom
Currently, when you try to format blocks of code inside a blockquote, you get extra spacing at the bottom of the blockquote. Here are a couple of examples:
While this isn't a huge deal, it still looks ...
1
vote
2
answers
2k
views
Strong, bold, and backtick not working when trying to style a text piece [duplicate]
Please, take a look at this post in SO. I've tried to make some part of the text bold to make the change noticeable. But it doesn't make it bold, instead it just adds leading and trailing **. Here, in ...