githuber-md
githuber-md copied to clipboard
在插件中使用Prism代码高亮对于XML、Html无效
如果沒有提供以下詳細資訊,您開立的問題回報會被無視。
問題或臭蟲
开启模组中的prism代码高亮功能后,文章中标记为xml或是html语法的代码块无法被识别并且高亮 但是标记为诸如c或是cpp代码块则可以正常识别并高亮
如何重現
請告知重現此問題的步驟回何:
- 打开prism模组
- 在 编辑器输入:
```xml
some code
```
- 更新文章
- 查看文章既可以看到未被高亮的代码
預期的行為或結果
正常对xml语法代码进行染色
畫面截圖
设置:
编辑器界面:
实际效果

伺服器環境
- WordPress 版本 5.8.2
- WP Githuber MD 版本 1.16.1
- PHP 版本 7.4.24
用戶端環境
- 作業系統 Windows 11
- 瀏覽器 Chrome
其它說明
如果我单独使用自己的prism代码而不使用模组,则可以正常渲染相同的xml代码块
修改大写的XML为xml并不能够解决这个问题
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 2 days.
This issue was closed because it has been inactive for 14 days since being marked as stale.