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

Can the applied styling be based on a property? #192

Closed
machado-t opened this issue Aug 18, 2023 · 2 comments
Closed

Can the applied styling be based on a property? #192

machado-t opened this issue Aug 18, 2023 · 2 comments

Comments

@machado-t
Copy link

I'll try to explain it better with an example.
Some files have the property "icon" with an emoji. Could this emoji be appended to the links using this plugin?

@machado-t
Copy link
Author

Could this be done with CSS maybe?

@HEmile
Copy link
Collaborator

HEmile commented Oct 26, 2023

Yes, this can be done with css. See the examples in the README.
Something like this should work:

.data-link-icon-before[data-link-icon]::before{
    content: attr(data-link-icon)
}

@HEmile HEmile closed this as completed Oct 26, 2023
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