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

Allow markdown referencing within description tags for Youtube , Image and StoryCard components #32

Open
joewheaton opened this issue Dec 24, 2024 · 2 comments
Labels
enhancement New feature or request Gatsby Anything related specifically to Gatsby
Milestone

Comments

@joewheaton
Copy link

I am liking the captions on the new components. They are nice and simple and useful. However, for migrating a lot of old content, it would be nice to allow them to have clickable URLs (e.g. [my link](https://somewhere.com)) in the text. I can understand why on StoryCards this might not be possible as the whole card is link to the the to=" target. But for Image and Youtube, it would be nice.

@joewheaton joewheaton added the enhancement New feature or request label Dec 24, 2024
@joewheaton joewheaton changed the title Is it possible to allow markdown referencing within description tags for Youtube , Image and StoryCard components? Allow markdown referencing within description tags for Youtube , Image and StoryCard components Dec 24, 2024
@MattReimer MattReimer added the Gatsby Anything related specifically to Gatsby label Dec 25, 2024
@MattReimer
Copy link
Member

That's a really tough ask. I can't actually give you markdown there because it creates a nesting problem and tanks the site performance (renderers inside renderers).

This isn't a hard no. just don't see an easy way to accomplish it with the setup we've got.

@joewheaton
Copy link
Author

That's a really tough ask. I can't actually give you markdown there because it creates a nesting problem and tanks the site performance (renderers inside renderers).

This isn't a hard no. just don't see an easy way to accomplish it with the setup we've got.

Thanks @MattReimer. I wondered about that. What if instead of the request being markdown, it is just the ability to put html in the caption (e.g. just a regular <a href= tag)? Using HTML is something we did in the Jekyll cards and grids a lot anyway. Also okay, if that is too tough an ask. Thanks!

@MattReimer MattReimer added this to the Next Version milestone Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Gatsby Anything related specifically to Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants