Replies: 2 comments 1 reply
-
I think this is a good idea. I need to talk with the team about why we have this: If not for that then you'd be able to do this: ---
meta:
title: Welcome to the site
description: Hello, World!
---
export const links = () => [
{
rel: "stylesheet",
href: "/welcome.css",
media: "(prefers-reduced-motion: no-preference)",
},
] And honestly, what I'd really like to do is make it so you can do |
Beta Was this translation helpful? Give feedback.
-
This have been released today in 1.6.6 : https://github.com/remix-run/remix/releases/tag/remix%401.6.6 Enjoy 🎉 |
Beta Was this translation helpful? Give feedback.
-
What is the new or updated feature that you are suggesting?
Currently,
meta
works in MDX frontmatter. It would be great iflinks
worked the same way. Following YAML syntax it would look something like this: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.Beta Was this translation helpful? Give feedback.
All reactions