Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Feature]: Support links in MDX frontmatter #1856

Closed
knowler opened this issue Feb 9, 2022 · 0 comments
Closed

[Feature]: Support links in MDX frontmatter #1856

knowler opened this issue Feb 9, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@knowler
Copy link
Contributor

knowler commented Feb 9, 2022

What is the new or updated feature that you are suggesting?

Currently, meta works in MDX frontmatter. It would be great if links worked the same way. Following YAML syntax it would look something like this:

---
meta:
  title: Welcome to the site
  description: Hello, World!
links:
  - rel: stylesheet
    href: "/welcome.css"
    media: "(prefers-reduced-motion: no-preference)"
---

Why should this feature be included?

While it is likely that Markdown content will share a single stylesheet which can be set in the layout root, sometimes a blog post or page might need to include a stylesheet for something specific included in the content. Currently, there is no way to do this other than include a <link> tag in the Markdown.

@machour machour added the enhancement New feature or request label Mar 24, 2022
@remix-run remix-run locked and limited conversation to collaborators Apr 19, 2022
@chaance chaance converted this issue into discussion #2858 Apr 19, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants