Huxpro / Huxpro/huxpro.github.io

图片的alt属性文本包含下划线时无法正确显示

Open
#453 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
7.6k
Forks
6.6k
Avg merge
1d 12h
Merged PRs (30d)
1

Description

插入图片时方括号内包含下划线时,网站似乎不能正常显示图片。

在blog中的显示效果:
![image](https://user-images.githubusercontent.com/48601190/232473852-8710610d-1a44-4e73-a413-4b7fefed9dc4.png)

在Typora中显示效果:
![image](https://user-images.githubusercontent.com/48601190/232473911-8e05e7a8-bff4-4e82-bd44-90443aa071ce.png)

将alt属性文本中的下划线去掉之后就可以显示图片了:
![image](https://user-images.githubusercontent.com/48601190/232475649-911fcf27-79e3-4137-b9a1-4ccbc3d48daa.png)

一个解决办法是在下划线前面加转义符 \ ,使其可以正常显示,但是带下划线的alt_text可以正常在typora、vscode、obsidian和typecho上正常显示,就因为要发布在github page单独进行修改有点麻烦。

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.