protoc-gen-doc
protoc-gen-doc copied to clipboard
Markdown - HTML anchor tags are not generated for Scalar Value Types
I am able to generate the markdown doc file from my proto but the ## Scalar Value Types section in the end does not have an HTML anchor tag.
Grab the template file from here and store it locally: https://github.com/pseudomuto/protoc-gen-doc/blob/master/resources/markdown.tmpl
In the Scalar Value Types section at the bottom, add:
<a name="{{.ProtoType}}" /> after the first pipe, |
Then to use the modified template, change your --doc_opt to:
--doc_opt=/path/to/markdown.tmpl,outputfile.md