Skip to content

x/website: Usage of unicode double quotes in code blocks of the documentation #54300

@piroux

Description

@piroux

What version of Go are you using (go version)?

Go 1.19

Does this issue reproduce with the latest release?

Yes

What did you do?

Read the current Go documentation website, for instance the Links section on the new Comments page

What did you expect to see?

Usage of the simple back quote character: `

What did you see instead?

Usage of double quote characters: and

Context

I think that for a language that boasts itself to be very precise about Unicode, it should be very precise as what kind of backquotes / double-quotes it does render in its code-blocks example for the comment documentation, hence this issue.
I am not sure if that is a problem yet, maybe only a discussion.

Here is what the page says about rendering quotes:

A pair of consecutive backticks (` U+0060) is interpreted as a Unicode left quote (“ U+201C), and a pair of consecutive single quotes (' U+0027) is interpreted as a unicode right quote (” U+201D).

Specific example

In the comment.md file, source for the Comment documentation page:

  • text-side: “[Text]: URL”
  • code-block: “[JSON and Go].”

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.website

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions