Skip to content

Generated html doc type anchor vs id attribute missmatch #533

@danielfonda

Description

@danielfonda

Hi all,

It appears that when generating proto html docs, the type reference anchor doesn't generate properly.

Example:

message UserData {
  name = 1;
  age = 2;
}

message User {
  id = 1;
  UserData = 2;
}

The above example generates a table for User as expected.
The type column for its UserData will include a link to <a href="#UserData">

The problem is that the definition for UserData includes a dot for its id attribute. So the actual generated html code looks like:
<h3 id=".UserData">UserData</h3> (notice the dot before the ID).

Am I doing something wrong, or is this a bug?

Thanks 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions