-
Notifications
You must be signed in to change notification settings - Fork 37
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
Stop building CSS and adopt github-markdown-css
instead
#55
Comments
I'm -1 on not shipping any CSS at all. People who care about the difference between inlining styles and linking a stylesheet already do what makes sense for them (ref: Pyro). People who want to use different CSS can if they want to (we should have better docs on how to do that). I definitely think that our current implementation of bundling CSS is suboptimal and could be improved.
Are you referring to |
When the docs say nothing about it, people would not care. Find a real example where:
Then do not do it at all. This project is initially just for simple markdown rendering for
As far as I know |
Pyro does that, check out the head of the website.
This seems dubious to me. I call it suboptimal because I rewrote the old implementation to what we have today and know that the build system is pretty fragile. In my eyes, we would ideally switch to
I think it still has some merit in its simplicity today. That's the big selling point of
Thanks for clarifying, 👍 |
I see where you are coming from, but many people are not seasoned enough to make the same choice.
I probably should have clarified, that is the real thing I want to get rid of. I'm not saying the
I would certainly resort to better docs if changing actual code is not approved.
Same for me. I was just stating why does this package bundles styles to begin with. |
Ah sorry, I misinterpreted your message. I completely agree with this sentiment. I don't see a reason why a code change would not be accepted especially since it greatly simplifies our fragile workflow. |
github-markdown-css
insteadgithub-markdown-css
instead
I was referring to what I initially suggested: removing CSS from this package completely, which could be deemed too aggressive and breaking for little good. |
github-markdown-css was initially suggested as an attempt to reduce bundle size in #2, but at that time I feel this could result in being neglected.
Now that this project is under denoland umbrella and getting proper maintenance, it makes sense to ask: Is bundling CSS necessary? Won't that be too opinionated?
I think it would better to focus on the actual rendering, and dedicate styling to people who are doing it seriously in a standalone object.
This also covers the recently added Katex styles, which is a opt-in feature to begin with.
It may look inconvenient as one has to fetch the style themselves, but I consider this a push for the good: you should use
<link rel="stylesheet">
instead of inlining this many styles after all.The text was updated successfully, but these errors were encountered: