Last active
April 15, 2025 09:19
-
-
Save miguelmota/322c89234d60de578f37d3c6d30f7e41 to your computer and use it in GitHub Desktop.
Unicode UTF-8 external link arrow symbol (closest thing to it)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
↗ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case it helps someone, here's what I did:
display: inline-block
to allow us to set an height, and set the height in reference to the current font usingem
units.Here's a tweaked variant that I ended up using (you might need / want different constants):
Caveat: The SVGs added this way can't use
currentColor
. For my purpose, thefilter: invert
in dark mode sufficed to work around this issue. Hopefully there will be a nicer way to do this in the future instead of these shenanigans.