From beb70c816ec25d55c6f09f0ba9b55e6846bd8d2b Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 7 Feb 2024 18:30:36 +0800 Subject: [PATCH] [fix] katex scroll #300 --- source/css/_plugins/index.styl | 2 ++ source/css/_plugins/katex.styl | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 source/css/_plugins/katex.styl diff --git a/source/css/_plugins/index.styl b/source/css/_plugins/index.styl index 9ffcf58..65f6466 100644 --- a/source/css/_plugins/index.styl +++ b/source/css/_plugins/index.styl @@ -16,6 +16,8 @@ if hexo-config('plugins.copycode.enable') if hexo-config('plugins.tianli_gpt.enable') @import 'tianli_gpt' +if hexo-config('plugins.katex.enable') + @import 'katex' // 评论 if hexo-config('comments.service') == 'beaudar' diff --git a/source/css/_plugins/katex.styl b/source/css/_plugins/katex.styl new file mode 100644 index 0000000..b8e6837 --- /dev/null +++ b/source/css/_plugins/katex.styl @@ -0,0 +1,3 @@ +.md-text p.katex-block + overflow: auto + scrollbar(0, 0) \ No newline at end of file