Icon
常用Icom¶
:material-comment::
:material-comment-text::
:material-comment-edit::
:material-comment-alert::
:material-comment-quote::
:material-comment-question::
:material-comment-processing::
:material-pin::
:material-tag::
:material-xml::
:material-table::
:material-link::
:simple-cplusplus::
:material-unreal::
:material-pi::
Search¶
Icons, Emojis - Material for MkDocs
Tip: Enter some keywords to find icons and emojis and click on the shortcode to copy it to your clipboard.
Configuration¶
将以下行添加到 mkdocs.yml :
markdown_extensions:
- attr_list
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
Material for MkDocs 捆绑了以下图标集:
- – [Material Design]
- – [FontAwesome]
- – [Octicons]
- – [Simple Icons]
Usage¶
Emoji¶
可以在 Markdown 中集成表情符号,方法是将表情符号的短代码放在两个冒号之间。如果您使用的是 Twemoji (recommended),可以在 Emojipedia 上查找短代码:Icon¶
启用 Emoji 后,可以通过引用主题捆绑的任何图标的有效路径来使用图标,类似于表情符号,这些图标位于 .icons 目录中,并将 / 替换为 - :