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

[gatsby-remark-autolink-headers] Headings with inline codes create links with redundant detail #5764

Closed
ryanditjia opened this issue Jun 6, 2018 · 1 comment
Labels
help wanted Issue with a clear description that the community can help with. type: bug An issue or pull request relating to a bug in Gatsby

Comments

@ryanditjia
Copy link
Contributor

ryanditjia commented Jun 6, 2018

Description

Inline codes add unnecessary code-classlanguage-text code to its link. For example:

https://www.gatsbyjs.org/docs/migrating-from-v0-to-v1/#move-source-directories-pages-components-utils-etc-under-code-classlanguage-textsrccode

Should ideally be:

https://www.gatsbyjs.org/docs/migrating-from-v0-to-v1/#move-source-directories-pages-components-utils-etc-under-src

@m-allanson m-allanson added type: bug An issue or pull request relating to a bug in Gatsby help wanted Issue with a clear description that the community can help with. labels Jun 6, 2018
@pieh
Copy link
Contributor

pieh commented Jul 30, 2018

This was fixed on gatsbyjs.org by #6856

I think it might be useful to add this to gatsby-remark-autolink-headers docs

---edit:
by "this" I mean moving gatsby-remark-autolink-headers before gatsby-remark-prismjs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issue with a clear description that the community can help with. type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

3 participants