Skip to content

Add backticks around paths for GetSystemWindowsDirectory documentation#2207

Open
Chris-Johnston wants to merge 2 commits into
MicrosoftDocs:docsfrom
Chris-Johnston:patch-1
Open

Add backticks around paths for GetSystemWindowsDirectory documentation#2207
Chris-Johnston wants to merge 2 commits into
MicrosoftDocs:docsfrom
Chris-Johnston:patch-1

Conversation

@Chris-Johnston
Copy link
Copy Markdown
Contributor

In the documentation for lpBuffer in GetSystemWindowsDirectory, it calls out that if Windows is in the root directory of the drive, the returned path should end with a backslash. However, as it is rendered on the site, this doesn't have a backslash, which is confusing:

image

This is because markdown is escaping the period character, since that is used for unordered lists. I could have just done C:\\ to escape the backslash, but I think the inline code backticks also make it clear that "." is not part of the path either.

This is not going to be the only instance of this problem in the docs, but it uniquely affected this sentence. This query for instances of C:\ and not C:\\ might help find other cases that would need a similar fix, it only matters if the character after \ can be escaped in Markdown.

The path at the end of the sentence (`C:\.`) was being rendered as `C:.`, which was confusing because the sentence itself was discussing the semantics of when the provided path would end with a backslash. Markdown was using the backslash to escape the `.` (which is used for unordered lists), instead of rendering the backslash. This could also be fixed with `C:\\`, but I think wrapping this in code brackets also makes it clear that `.` is not part of the path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant