Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Add css classes to single elements #289

Open
lollo03 opened this issue Oct 16, 2021 · 4 comments
Open

Add css classes to single elements #289

lollo03 opened this issue Oct 16, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@lollo03
Copy link

lollo03 commented Oct 16, 2021

Is your feature request related to a problem? Please describe.
Hello, first of all, I love this plugin, but I have an issue. I use tailwind css with my vue3 app and I use the dark mode. To use the dark mode I need to attach dark:tex-yellow-400 classes to the <a> elements. I can’t do this with vue3-markdown-it

Describe the solution you'd like
I would like an option to attach custom classes to some element in the markdown. Example: {a: "dark:text-yellow-400"}

thank you for your support.

@lollo03 lollo03 added the enhancement New feature or request label Oct 16, 2021
@micahlt
Copy link

micahlt commented Jan 1, 2022

Same issue here - any word on this?

@JanGuillermo
Copy link
Owner

Hey @lollo03 and @micahlt, sorry about the lack of response. I'll take a look on this weekend.

@micahlt
Copy link

micahlt commented Jan 6, 2022

Hey @lollo03 and @micahlt, sorry about the lack of response. I'll take a look on this weekend.

No problem! Life comes first. Thank you for this amazing library!

@micahlt
Copy link

micahlt commented Jan 21, 2022

@lollo03 @JanGuillermo In the meantime, if you're just looking to style elements I discovered that the v-deep selector works perfectly in my case - see https://stackoverflow.com/a/55368933/10806546. Until classes are added to elements, it might be nice to link to the v-deep documentation in the README under a "styling" section.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

3 participants