Docs: Missing backtick screwing up formatting

Created on 29 May 2020  Â·  3Comments  Â·  Source: dotnet/docs

Missing a back-tick ` in your markdown for the last code snippet on this page. You can tell it's intended to be closed after the double back-ticks, but instead the code block ends up continuing until
it is closed properly after the ICitizen bit. I assume the markdown looks something like this:

```csharp
string IEmployee.this[int index]
{
}
``

implements the indexer on the IEmployee interface, while the following declaration:

``csharp string ICitizen.this[int index] { } \``

EDIT: Sorry, it's hard to format this when markdown is supported in comments too :(


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Area - C# Guide doc-bug up-for-grabs

Most helpful comment

Do you want to submit a Pull Request that fixes that? For simple changes like this one, you can do it all from your browser (and if you don't know how to do that, you can follow this guide).

Sorry, it's hard to format this when markdown is supported in comments too :(

You can use 4 backticks for that. This:

`

string ICitizen.this[int index]
{
}

````
`````

renders as:

````

string ICitizen.this[int index]
{
}

````

All 3 comments

Do you want to submit a Pull Request that fixes that? For simple changes like this one, you can do it all from your browser (and if you don't know how to do that, you can follow this guide).

Sorry, it's hard to format this when markdown is supported in comments too :(

You can use 4 backticks for that. This:

`

string ICitizen.this[int index]
{
}

````
`````

renders as:

````

string ICitizen.this[int index]
{
}

````

Hi @nlehnert1, I made this up-for-grabs. Please feel free to follow the guidance for simple updates like this. Thank you @svick for helping out here too, much appreciated.

Apologies; I got very much wrapped up in the events of this weekend and totally forgot about this until just now. Created a PR and linked it to this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mekomlusa picture mekomlusa  Â·  3Comments

LJ9999 picture LJ9999  Â·  3Comments

ygoe picture ygoe  Â·  3Comments

ike86 picture ike86  Â·  3Comments

Manoj-Prabhakaran picture Manoj-Prabhakaran  Â·  3Comments