emoji not being printed/rendered #7270
-
ContextI am learning material mkdocs and trying to create a document with an emoji. When I open this md file in browser in github, I can see the emoji https://github.com/eth-cscs/manta/blob/docs/docs/basics.md However, the emoji is not rendered when opening the static document rendered by material mkdocs https://eth-cscs.github.io/manta/basics/ Any idea why? Bug descriptionI can't see emoji in my material mkdocs page Related linksReproduction
https://eth-cscs.github.io/manta/basics/ Steps to reproduceabove BrowserChrome Before submitting
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Converting to discussion, as this is definitely not a bug. |
Beta Was this translation helpful? Give feedback.
-
Hello @Masber, https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/#configuration markdown_extensions:
- attr_list
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg Example in a config file: Lines 143 to 145 in f4db9de |
Beta Was this translation helpful? Give feedback.
Hello @Masber,
GitHub provides their own rendering of icons, but to render icons when building
mkdocs-material
you have to enable the proper markdown_extensions, as per the instructions on the page.https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/#configuration
Example in a config file:
mkdocs-material/mkdocs.yml
Lines 143 to 145 in f4db9de