6

I was writing comment to the question(about Samba, so it uses UNC with backslashes).

The source code of my comment:

On Linux you should use `//` instead of `\\`. On Windows you should use only `\\`. My idea was to determine full share name from Nautilus - for example `smb://host_name_or_ip/share_name` to write then it as `\\host_name_or_ip/share_name` on device.

Here (in question/answer fields) it renders normally as:

On Linux you should use // instead of \\. On Windows you should use only \\. My idea was to determine full share name from Nautilus - for example smb://host_name_or_ip/share_name to write then it as \\host_name_or_ip/share_name on device.

But in comments it is rendered incorrectly:

Wrong rendering in comment

I see that problematic parts contain backslash ("\").
Is it a bug in comments renderer?

1 Answer 1

6

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 should use `//` instead of ``\\`` foo.

I am guessing the issue is some combination of i) having many backticks and ii) having one of the backticks escaped (\`). Anyway, using double backticks around the \\ works.

1
  • you should use `//` instead of ``\\`` foo. renders as: you should use // instead of \\ foo.
    – terdon Mod
    Commented Nov 16, 2018 at 11:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .