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

meta should only be collected between the userstyles headers #92

Open
isabelroses opened this issue Dec 13, 2023 · 1 comment
Open

meta should only be collected between the userstyles headers #92

isabelroses opened this issue Dec 13, 2023 · 1 comment

Comments

@isabelroses
Copy link

When using the @name outside of the userstyles headers, the package would still detect that and set it to the name of the userstyle.

In the example below, the @name is used and when collecting the metadata. the name of the userstyle is set to ) {
https://github.com/catppuccin/userstyles/blob/main/styles/chess.com/catppuccin.user.css#L64-L66

@eight04
Copy link
Collaborator

eight04 commented Dec 14, 2023

This library was designed to parse metadata block only. I won't mind if we try to stop parsing when getting a ==/UserStyle== though.

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

2 participants