17 votes

Many users are not formatting images properly. What to do?

Most of the users are either forgetting to add the exclamation mark or maybe deleted the exclamation mark before posting the question/answer. That's not what happens (at least not in most cases); new ...
user avatar
16 votes
Accepted

Unexpected formatting with code in list

The problem is the list. When using lists, you need to multiply the indentation by the list level (see this answer's source to understand better): No list, 4 spaces indents code: this is code List ...
user avatar
  • 93k
14 votes

How to use keyboard 'icon' in markdown?

This is HTML that works also in the used Markup language here on StackExchange. You would write <kbd>F1</kbd> to achieve F1 (when it is surrounded by ` for code formatting, HTML is ignored)...
user avatar
  • 101k
12 votes

What is the preferred way to add a numbered list using markdown?

tl;dr: Output matters, the rest is up to you. You’re free to use whatever numbering scheme you want as long as it gives the correct output. There is no preferred way, and this is good – needlessly ...
user avatar
  • 37.5k
12 votes

Please don't use underscores for formatting

Disagree. If it is supported somewhere, it should be supported everywhere. (Or nowhere but I think no one is going to convert all existing posts.) So I would rather ask for adding the support to “SE ...
user avatar
  • 10.5k
9 votes

Can someone elaborate for me the rule on using the back tick for emphasis?

No, backticks should not be used for emphasis. There are various reasons for this: Consider blind users using screen reading software. Such context tags (<code>) help them know what they're ...
user avatar
  • 93k
9 votes

Automatically wrapping lines in Ask Ubuntu

Click the gray circle with a question mark inside it in the upper right corner of the Ask Ubuntu markdown editor to show the link for advanced help (in red letters) which tells all the rules for ...
user avatar
  • 99.9k
8 votes

What should I do when a user persistently insists on poor formatting and resists formatting improvements?

In this case I would suggest doing nothing, because the post is readable as it is. It would look prettier if its two list items were in an actual ordered list, but the 1), 2) formatting is readable ...
user avatar
8 votes

Unexpected formatting with code in list

When your code is inside an ordered or unordered list you will need to indent it 8 spaces to get proper code formatting. I dunno if this is documented anywhere.
user avatar
  • 54.3k
8 votes

What is the preferred way to add a numbered list using markdown?

Markdown is not perfect, but we can't expect everyone to know LaTeX, so markdown is the easy way for the most common denominator to be able to produce something readable. :-) Your answer wasn't ...
user avatar
  • 33.6k
8 votes
Accepted

Insert link doesn't work as expected

It works fine for me. Note that this is the title, not the alt text. The text in the "enter image description" part is the alt text, used when the image couldn't be shown. The title is shown when you ...
user avatar
  • 183k
7 votes
Accepted

Final code block is rendered differently from Edit preview

This has to do with the age of the post and is in fact happening by design. When it was created in December 2018, Stack Exchange didn't support ``` code fences. It did, however, support ``` as a way ...
user avatar
6 votes
Accepted

Markdown editing commands don't seem to work

Comment formatting only supports a very specific subset, the commands in the block at the top. The other ones in the list, like line breaks, are exclusive to posts (questions and answers).
user avatar
6 votes

There is something wrong with backslash ("\") behaviour in comments

I don't remember the details, but there are differences in how markdown works in posts, in comments and in chat. In your case, you want this (see the comment under my answer for a demonstration): you ...
user avatar
  • 93k
4 votes

Final code block is rendered differently from Edit preview

I usually double-up the indent for each level of bullet point you're under. So here that's an indent of 8 spaces. And it previews correctly. 1. Update your `/etc/default/grub` accordingly: ...
user avatar
  • 281k
4 votes
Accepted

Make blockquote formatting button not destroy the source layout!

The problem only happens with short lines (or rather, with lines containing short enough words), where the editor wraps a paragraph, leading it to fit as many words as it can into each line. ...
user avatar
  • 183k
2 votes

Syntax highlighting in <pre> block?

Just use this userscript: Better handling of indentation and the TAB key when editing posts. This user script changes the behavior of a few keys (most notably the Tab key) within the post editor ...
user avatar
  • 93k
2 votes

Syntax highlighting in <pre> block?

Many people who find this post by searching will want to know how to format text as a block of code easily. To do that, select the text in the visual editor (i.e., the text box on Ask Ubuntu where you ...
user avatar
2 votes

Links without http don't get linked

As @JeffAtwood mentioned, links (URLs) have to contain the protocol aka scheme generally and are not valid without it – although most browsers accept just the hostnames without specifying the protocol....
user avatar
  • 10.5k
2 votes

Final code block is rendered differently from Edit preview

I solved it by indenting the code block by four spaces, which subordinates it under the ordered list: 1. update your `/etc/default/grub` accordingly: ``` GRUB_CMDLINE_LINUX_DEFAULT="...
user avatar
  • 37.5k
1 vote

Unexpected formatting with code in list

Minor note about 2 successive lists of different type even without any indent space. - ul 1. il <-0 here notice |<-12 code break 1. il - ul <-0 here notice |&...
user avatar
  • 45.5k

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