MaLuns / hexo-theme-async

一个简单而轻量级的 Hexo 主题。 | A simple, lightweight Hexo theme.
https://hexo-theme-async.imalun.com
MIT License
327 stars 40 forks source link

[Bug]: Latex 中含有 '#' 符号会被识别成 html 注释 #92

Closed GrainRainy closed 11 months ago

GrainRainy commented 11 months ago

使用的 Hexo-Theme-Asycn 版本? | What version of Hexo-Theme-Asycn are you use?

newest

是否修改过主题文件? || Has the theme files been modified?

是 (Yes)

使用的浏览器? || What browse are you using?

Chrome

使用的系統? || What operating system are you using?

Windows

问题描述 | Describe the bug

rt, 本地 md 文件中 Latex 16 进制颜色代码的 '#' 被识别成了 html 注释, 整篇文章均被注释.

image

image

出现问题网站 | Website

https://grainrain.site/chtholly_tree/

sizdshi commented 11 months ago

我也有此问题

MaLuns commented 11 months ago

{# 会被 hexo 解析成 nunjucks 模版,可以在页面配置关闭

MaLuns commented 11 months ago

或者你直接忽略掉 #, 颜色也是能正常渲染的