Skip to content

How to presert upper case in links hashes? Like path.html#L42? #5452

Answered by slorber
antonmedv asked this question in Q&A
Discussion options

You must be logged in to vote

I tested using a link in both React or Markdown:

              <Link
                className="button button--info"
                to="https://github.com/facebook/docusaurus/blob/main/website/babel.config.js#L7">
                <Translate>Playground</Translate>
              </Link>
[test](https://github.com/facebook/docusaurus/blob/main/website/babel.config.js#L7)

In both case, the links weren't lowercased and GitHub highlighted the line.

Are you sure about this behavior? Can you show how you created those links? Any open-source site online I can see (source+site)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@antonmedv
Comment options

Answer selected by antonmedv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants