13 votes

4-space indentation never works

Did you leave an empty line before the code? For example: Test line line 1 indented by four spaces line 2 indented by four spaces Test line 2 line 3 indented by four spaces line 4 ...
user avatar
  • 4,476
8 votes
Accepted

How to get the * (asterisk) to show in <kbd> mode if used twice

You can backslash the Markdown characters: <kbd>Ctrl</kbd>+<kbd>\*</kbd> or <kbd>Alt</kbd>+<kbd>\*</kbd> gives Ctrl+* or Alt+*.
user avatar
7 votes
Accepted

How to use backticks at the beginning and the end of inline code blocks?

As a code block I'm assuming you mean something like this? ` blah...code...blah ` Simply indent the code block using 4 spaces. As inlined code block If on the other hand you want them inlined ...
user avatar
  • 346k
7 votes
Accepted

See the source of a post when the edit button is disabled

You don't need to edit to view the source. Get the post ID (click on share, or look at the question URL, note the first number). For your question, that would be 3559. Go to <site.name>/posts/&...
user avatar
  • 64.3k
7 votes

4-space indentation never works

There's another syntax for code blocks which is mentioned in the advanced formatting help. Surround the code by three backticks on a line of their own. The backticks have to be on their own line but ...
user avatar
5 votes

Our site has been migrated to CommonMark

I'll just mention a significant consequence of that here as I was just hit by it: Apparently, articles that were last edited before the transition are still rendered the old way, so you don't need to ...
user avatar
5 votes
Accepted

embedding gists from github in stackexchange.com

No. That would be the same as linking, which means that should the gist disappear, the question/answer here becomes useless. Won't fix.
user avatar
  • 68.1k
4 votes

Experimentation Sandbox

4 votes
Accepted

Markdown images using html img src

I have a high resolution screenshot from my mobile phone and I wanted to constrain the rendered view to 30% while leaving the image intact in case someone needed the detail. Then height and width are ...
user avatar
  • 64.3k
3 votes

4-space indentation never works

Let me have a go code yes it works! I left a blank line before it. So the 'How to Format' should have told us about this!
user avatar
  • 27
3 votes

Markdown help: escaping intendation in lists for code blocks

Personally, I do indented code blocks in lists using the triple backtick syntax, and then I use Ctrl+K on them to do the indentation: So, first write the code block this way: * Some list item ...
user avatar
  • 272k
3 votes
Accepted

Numbered list followed by code block breaks formatting

You need to indent it with eight spaces instead of four: Numbered list Code block Line 2 Indenting a line right after a list indicated that it's part of that list item. If you make a new, non-...
user avatar
3 votes

Experimentation Sandbox

Will this put everything below this in a <code> tag on the mobile site (and maybe also on the desktop site on some computers / browsers)? I think it did. (I deleted it because it messed up the ...
2 votes
Accepted

Help to markdown editing

I don't know where you've seen these "wrong" examples. The basic rule is that one is italic and two is bold: _italic1_ and *italic2* : italic1 and italic2 __bold1__ and **bold2** : bold1 and bold2 ...
user avatar
  • 217k
1 vote

4-space indentation never works

The behavior you are seeing is a design feature: in Markdown you need a blank line to signal the and of a paragraph. Spaces or tabs at the beginning of a line are not enough to make it a different ...
user avatar
  • 9,011
1 vote

Experimentation Sandbox

Code block formatting test. code goes here Now this: more here From problematic answer: for example: ip,time,name,_random 1.1.1.1,2018-08-31 11:12:32,python,65536 1.1.1.1,2018-08-31 11:12:32,...

Only top scored, non community-wiki answers of a minimum length are eligible