Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KaTeX 字体加载失败 #5417

Closed
4 tasks done
rogeryoungh opened this issue Oct 22, 2023 · 2 comments
Closed
4 tasks done

KaTeX 字体加载失败 #5417

rogeryoungh opened this issue Oct 22, 2023 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rogeryoungh
Copy link

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.28.0

Driver used / 使用的存储驱动

本地存储

Describe the bug / 问题描述

无法加载 KaTeX 的字体,使得文档看起来很奇怪。控制台可以看到十几个请求错误。看起来是并未打包字体。

image

Reproduction / 复现链接

行内公式 $\sum_{n=0}^\infty \frac{1}{n^2}$

行间公式

$$
\sum_{n=0}^\infty \frac{1}{n^2}
$$

Config / 配置

复现链接。http://81.68.84.209:5005/share/temp/test.md

Logs / 日志

downloadable font: rejected by sanitizer (font-family: "KaTeX_Size1" style:normal weight:400 stretch:100 src index:0) source: http://*************/assets/fonts/KaTeX_Size1-Regular.woff2
downloadable font: rejected by sanitizer (font-family: "KaTeX_Math" style:italic weight:400 stretch:100 src index:0) source: http://*************/assets/fonts/KaTeX_Math-Italic.woff2
downloadable font: rejected by sanitizer (font-family: "KaTeX_Main" style:normal weight:400 stretch:100 src index:0) source: http://*************/assets/fonts/KaTeX_Main-Regular.woff2
downloadable font: rejected by sanitizer (font-family: "KaTeX_Size2" style:normal weight:400 stretch:100 src index:0) source: http://*************/assets/fonts/KaTeX_Size2-Regular.woff2
downloadable font: rejected by sanitizer (font-family: "KaTeX_Size1" style:normal weight:400 stretch:100 src index:1) source: http://*************/assets/fonts/KaTeX_Size1-Regular.woff
downloadable font: rejected by sanitizer (font-family: "KaTeX_Math" style:italic weight:400 stretch:100 src index:1) source: http://*************/assets/fonts/KaTeX_Math-Italic.woff
downloadable font: rejected by sanitizer (font-family: "KaTeX_Main" style:normal weight:400 stretch:100 src index:1) source: http://*************/assets/fonts/KaTeX_Main-Regular.woff
downloadable font: rejected by sanitizer (font-family: "KaTeX_Size2" style:normal weight:400 stretch:100 src index:1) source: http://*************/assets/fonts/KaTeX_Size2-Regular.woff
downloadable font: rejected by sanitizer (font-family: "KaTeX_Size1" style:normal weight:400 stretch:100 src index:2) source: http://*************/assets/fonts/KaTeX_Size1-Regular.ttf
downloadable font: rejected by sanitizer (font-family: "KaTeX_Math" style:italic weight:400 stretch:100 src index:2) source: http://*************/assets/fonts/KaTeX_Math-Italic.ttf
downloadable font: rejected by sanitizer (font-family: "KaTeX_Main" style:normal weight:400 stretch:100 src index:2) source: http://*************/assets/fonts/KaTeX_Main-Regular.ttf
downloadable font: rejected by sanitizer (font-family: "KaTeX_Size2" style:normal weight:400 stretch:100 src index:2) source: http://*************/assets/fonts/KaTeX_Size2-Regular.ttf 
@rogeryoungh rogeryoungh added the bug Something isn't working label Oct 22, 2023
@welcome
Copy link

welcome bot commented Oct 22, 2023

Thanks for opening your first issue here! Be sure to follow the issue template!

@github-actions
Copy link

See

  1. 52% 视频加载失败 #16

@xhofe xhofe added this to the v3.29.0 milestone Oct 22, 2023
@xhofe xhofe self-assigned this Oct 22, 2023
@xhofe xhofe added the working In process label Oct 22, 2023
@github-actions github-actions bot removed the working In process label Oct 22, 2023
xhofe added a commit to AlistGo/alist-web that referenced this issue Oct 26, 2023
commit 82869dd
Author: Andy Hsu <i@nn.ci>
Date:   Thu Oct 26 19:25:16 2023 +0800

    chore: change ts query key

commit 1243b9f
Author: Isla <bot@nn.ci>
Date:   Thu Oct 26 11:24:14 2023 +0000

    style: format code with prettier

commit 4f7d9c8
Author: IlaBot <bot@nn.ci>
Date:   Thu Oct 26 11:23:31 2023 +0000

    chore: auto update i18n file

commit d7febf8
Author: Andy Hsu <i@nn.ci>
Date:   Sun Oct 22 20:39:01 2023 +0800

    fix: missing font of katex (close AlistGo/alist#5417)

commit ab6701c
Author: Andy Hsu <i@nn.ci>
Date:   Sun Oct 22 19:05:48 2023 +0800

    feat: add shortcut for text save (close AlistGo/alist#5396)

commit 04d98e9
Author: Isla <bot@nn.ci>
Date:   Thu Oct 12 13:00:33 2023 +0000

    style: format code with prettier

commit cb4ee21
Author: IlaBot <bot@nn.ci>
Date:   Thu Oct 12 12:59:48 2023 +0000

    chore: auto update i18n file
xhofe added a commit to AlistGo/alist-web that referenced this issue Nov 5, 2023
* chore: auto update i18n file

* style: format code with prettier

* feat: add shortcut for text save (close AlistGo/alist#5396)

* fix: missing font of katex (close AlistGo/alist#5417)

* chore: auto update i18n file

* style: format code with prettier

* chore: change ts query key

* chore: auto update i18n file

* style: format code with prettier

* fix: package download setting does not take effect (close AlistGo/alist#5478)

* feat: audio player use list order by default (#115)

---------

Co-authored-by: IlaBot <bot@nn.ci>
Co-authored-by: 22 <60903333+nini22P@users.noreply.github.com>
xhofe added a commit to AlistGo/alist-web that referenced this issue Nov 6, 2023
* wip: adapt new api

* Squashed commit of the following:

commit 82869dd
Author: Andy Hsu <i@nn.ci>
Date:   Thu Oct 26 19:25:16 2023 +0800

    chore: change ts query key

commit 1243b9f
Author: Isla <bot@nn.ci>
Date:   Thu Oct 26 11:24:14 2023 +0000

    style: format code with prettier

commit 4f7d9c8
Author: IlaBot <bot@nn.ci>
Date:   Thu Oct 26 11:23:31 2023 +0000

    chore: auto update i18n file

commit d7febf8
Author: Andy Hsu <i@nn.ci>
Date:   Sun Oct 22 20:39:01 2023 +0800

    fix: missing font of katex (close AlistGo/alist#5417)

commit ab6701c
Author: Andy Hsu <i@nn.ci>
Date:   Sun Oct 22 19:05:48 2023 +0800

    feat: add shortcut for text save (close AlistGo/alist#5396)

commit 04d98e9
Author: Isla <bot@nn.ci>
Date:   Thu Oct 12 13:00:33 2023 +0000

    style: format code with prettier

commit cb4ee21
Author: IlaBot <bot@nn.ci>
Date:   Thu Oct 12 12:59:48 2023 +0000

    chore: auto update i18n file

* chore: main updates (#119)

* chore: auto update i18n file

* style: format code with prettier

* feat: add shortcut for text save (close AlistGo/alist#5396)

* fix: missing font of katex (close AlistGo/alist#5417)

* chore: auto update i18n file

* style: format code with prettier

* chore: change ts query key

* chore: auto update i18n file

* style: format code with prettier

* fix: package download setting does not take effect (close AlistGo/alist#5478)

* feat: audio player use list order by default (#115)

---------

Co-authored-by: IlaBot <bot@nn.ci>
Co-authored-by: 22 <60903333+nini22P@users.noreply.github.com>

---------

Co-authored-by: IlaBot <bot@nn.ci>
Co-authored-by: 22 <60903333+nini22P@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants