Skip to content

x/website: code and other elements no longer display in TOC #69816

@ianlancetaylor

Description

@ianlancetaylor

Go version

tip

Output of go env in your module/workspace:

N/A

What did you do?

Looked at https://go.dev/doc/faq.

What did you see happen?

See, for example, https://go.dev/doc/faq. The TOC has several incomplete entries, such as "Why is" and "Why does Go not have the". These are because the headers in _content/doc/faq.md uses header lines like

### Why is `len` a function and not a method? {#methods_on_basics}

and

### Why does Go not have the `?:` operator? {#Does_Go_have_a_ternary_form}

In https://go.dev/cl/601055 for #68596 the TOC code was changed to only display the first element. That is causing the truncation we see here.

CC @hyangah @dmitshur

What did you expect to see?

Untruncated TOC lines.

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.website

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions