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

How to remove "-" in link title without breaking links #66

Open
SonjaChevre opened this issue Dec 15, 2020 · 9 comments
Open

How to remove "-" in link title without breaking links #66

SonjaChevre opened this issue Dec 15, 2020 · 9 comments

Comments

@SonjaChevre
Copy link

Hi,

I have two pages hello.mdx and product-management.mdx. I would like to link from hello to the product-management page.

If I use [[product-management]], everything works great => see picture

image

If I use [[product management]], the link still work if I click on it. But the template functionalities (preview, ...) don't work anymore => see picture

image

What would be the right way to remove the "-" in the link title?

I'm new at Gatsby, so it might be a very rooky question.
Thanks for the template!

Sonja

@cristianvasquez
Copy link

Hello I'm struggling with the same as you. It fails with spaces in the titles.

Specifying a resolve-url.js function that returns the same does not work either.

@SonjaChevre
Copy link
Author

@mathieudutour I have seen this works on your example page (https://mathieudutour.github.io/gatsby-digital-garden/). Can you please share the markdown for this page?

image

thanks!
Sonja

@mathieudutour
Copy link
Owner

mathieudutour commented Dec 27, 2020 via email

@SonjaChevre
Copy link
Author

Shame ;) thanks for the reply

@cristianvasquez
Copy link

Oh, Roam, what's that? :P ...

Thanks!

@SonjaChevre
Copy link
Author

@cristianvasquez https://roamresearch.com/ - a tool for taking notes.

@cristianvasquez
Copy link

Now I remember, I tried to look at it but it started asking for my credit card.

@kalmir
Copy link

kalmir commented Jan 13, 2021

It’s not a markdown file, it’s coming from Roam

On 27 Dec 2020, at 20:41, Sonja Chèvre @.***> wrote:  @mathieudutour I have seen this works on your example page (https://mathieudutour.github.io/gatsby-digital-garden/). Can you please share the markdown for this page? thanks! Sonja — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

Hi, Mathieu, still... is there some way around this?

I source my files from Roam: but because I'm unable to make fetch work (due to my lacking skills) and want to filter what pages from Roam I will make public, I eventually work with .md files. And thus face the same problem as Sonja and Cristian. Thanks.

@gutestun
Copy link

gutestun commented Mar 3, 2021

This would be high on my list to fix as well.
One solution would be to have Gatsby replace spaces in the links with %20.

@mathieudutour - any hints on how to achieve this would be appreciated. I know zero JS but it would be an impetus to start learning…

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

5 participants