githuber-md icon indicating copy to clipboard operation
githuber-md copied to clipboard

在插件中使用Prism代码高亮对于XML、Html无效

Open Linloir opened this issue 4 years ago • 1 comments

如果沒有提供以下詳細資訊,您開立的問題回報會被無視。

問題或臭蟲

开启模组中的prism代码高亮功能后,文章中标记为xml或是html语法的代码块无法被识别并且高亮 但是标记为诸如c或是cpp代码块则可以正常识别并高亮

如何重現

請告知重現此問題的步驟回何:

  1. 打开prism模组
  2. 在 编辑器输入:

    ```xml
    some code
    ```
  1. 更新文章
  2. 查看文章既可以看到未被高亮的代码

預期的行為或結果

正常对xml语法代码进行染色

畫面截圖

设置: 屏幕截图 2021-11-18 144436 编辑器界面: image 实际效果 image

伺服器環境

  • WordPress 版本 5.8.2
  • WP Githuber MD 版本 1.16.1
  • PHP 版本 7.4.24

用戶端環境

  • 作業系統 Windows 11
  • 瀏覽器 Chrome

其它說明

如果我单独使用自己的prism代码而不使用模组,则可以正常渲染相同的xml代码块

Linloir avatar Nov 18 '21 06:11 Linloir

修改大写的XMLxml并不能够解决这个问题

Linloir avatar Nov 18 '21 06:11 Linloir

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.

github-actions[bot] avatar Jun 05 '23 00:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 07 '23 00:06 github-actions[bot]