Icons in abbreviations #8207
-
I tried to add an abbreviation like this: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello @NFanoe, It's not even a matter of the emoji extension not being activated, but But as long the content is on a single line, then you can add HTML inside, so you could first render *[Folkepensionsalder]: <img alt="🇬 🇧 " class="twemoji" src="https://cdn.jsdelivr.net/gh/jdecked/[email protected]/assets/svg/1f1ec-1f1e7.svg" title=":flag_gb:"> state pension age If you consider this a huge bug, then please move the discussion upstream to the maintainers of Python Markdown, as the Material theme doesn't do custom adjustments to the extensions:
|
Beta Was this translation helpful? Give feedback.
-
Thank you, I will :) I didn't think it was a bug, but maybe an enhancement request - but you're right, it doesn't belong here. |
Beta Was this translation helpful? Give feedback.
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.