hexpm / hexdocs

Service that manages the static documentation on https://hexdocs.pm

Home Page:https://hexdocs.pm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When copy/pasting function names, exclude metadata

Doerge opened this issue Β· comments

Thanks for a great project! πŸŽ‰

I'm not 100% sure this is the correct repo to post in, so pardon me, if it belongs somewhere else.

I often find myself using hexdocs and then copy/pasting function or attribute names to my editor. When I do that I get a bit of extra meta data, other than the name:
Screenshot 2020-03-13 at 11 31 24
becomes
Screenshot 2020-03-13 at 11 35 39
in my editor.

It would be nice if I would only get add_error instead of functionadd_error in this example.

HexDocs.pm is only concerned with docs hosting, not the docs itself. The bug is in https://github.com/elixir-lang/ex_doc; a PR would be appreciated!

fwiw copy-pasting the name from the spec doesn't have this issue :) but yeah, we should definitely fix this.

I saw that removing "display: inline-block" from the element fixes this but no idea what's going on.

image