Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated html doc type anchor vs id attribute missmatch #533

Open
danielfonda opened this issue Apr 27, 2024 · 0 comments
Open

Generated html doc type anchor vs id attribute missmatch #533

danielfonda opened this issue Apr 27, 2024 · 0 comments

Comments

@danielfonda
Copy link

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 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant