-
Notifications
You must be signed in to change notification settings - Fork 72
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
more icons for "symbol" #130
Comments
Hi! It seems that: <div class="i-ph-anchor-simple-thin" />
<div class="i-material-symbols-link" />
@ Is equivalent do doing <div class="i-ph-anchor-simple-thin">
<div class="i-material-symbols-link">
@
<!-- rest of the content -->
</div>
</div> Which doesn't sounds like it is what you want In a React JSX context, In the case of vanilla HTML you want an explicit closing tag: <div class="i-ph-anchor-simple-thin"></div>
<div class="i-material-symbols-link"></div>
@ Cheers |
Thx. The HTML grammar issue got resolved by your method. There's another problem, however, is a bit interesting.
I guess the reason is when only replace the |
That's gonna depend a lot on your build system but it sounds like you have a preprocessing tool that includes the CSS for the icons that it detects in your HTML, but it doesn't account for the ones in the Markdown rendered content You're correct you would need to make it detect the icons after the Markdown is done processing for this to work 👍 |
Hi, I'm using a lot of icons from Iconify and would also like to use a different icons for the symbol.
Usually when you use such an icon in a html, you can just define a
class="i-xxxx-xxx"
and with a correct setting of css framework, it will work.You can check examples here: https://unocss.dev/presets/icons
However, when I try to do such things with
markdown-it-anchor
:it seems the code will keep adding nested DOM and doesn't render as an icons...
Is there a way to make it work?
The text was updated successfully, but these errors were encountered: