Skip to content

Commit 27892c4

Browse files
committed
build: allow mkdocs emoji extensions
1 parent e06af10 commit 27892c4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ repos:
2020
- id: trailing-whitespace # 删除行尾空格
2121
- id: end-of-file-fixer # 确保文件以换行符结束
2222
- id: check-yaml # 检查 YAML 语法
23+
args: ['--unsafe']
2324
- id: check-added-large-files # 防止提交大文件
2425
args: ['--maxkb=1000']
2526
- id: check-merge-conflict # 检查合并冲突标记

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ markdown_extensions:
6464
- admonition
6565
- pymdownx.details
6666
- pymdownx.emoji:
67-
emoji_index: material.extensions.emoji.twemoji
68-
emoji_generator: material.extensions.emoji.to_svg
67+
emoji_index: !!python/name:material.extensions.emoji.twemoji
68+
emoji_generator: !!python/name:material.extensions.emoji.to_svg
6969
- attr_list
7070
- md_in_html
7171
- tables

0 commit comments

Comments
 (0)