Skip to content

Icons in abbreviations #8207

Answered by kamilkrzyskow
NFanoe asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @NFanoe,
the abbr extension doesn't process the contents of the abbreviations as Markdown, it's a simple regex logic where it reads the "key name" and then everything until the end of line as the "contents".

It's not even a matter of the emoji extension not being activated, but *text* also won't create italic text.

But as long the content is on a single line, then you can add HTML inside, so you could first render :flag_gb: normally, and then using the dev tools in your browser extract the HTML to put it inside of your abbreviation.

*[Folkepensionsalder]: <img alt="🇬 🇧 " class="twemoji" src="https://cdn.jsdelivr.net/gh/jdecked/[email protected]/assets/svg/1f1ec-1f1e7.svg" title=":flag_gb:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by NFanoe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants