Give option to disable Nunjucks when processing posts.#2478
Give option to disable Nunjucks when processing posts.#2478be5invis wants to merge 1 commit intohexojs:masterfrom be5invis:be5invis-patch-disable-nunjucks
Conversation
|
Thanks for the PR. Since Swig deprecated and Nunjucks is major renderer for tags in Hexo 3.0, this setting could affect all tag plugins (Hexo tags or third-parties). The impact could be huge. One solution is we give up the Nunjuncks as it really causes troubles with math and LeTex symbols. However, adding a system setting doesn't do it once for all. |
|
@NoahDragon This is intensional: if we do NOT need any tag plugin (for me, my Youki can handle them with its macro system), then you can turn the entire thing off. |
|
I totally understand your situation. However, this fix is a shortcut to solve the conflict between Nunjucks and other marked languages. We are also working on to resolve the confliction. I would recommend modifying the Hexo version in your package.json to: So that you could keep this change for your site, we also could move on our changes without worrying about the new setting. |
This PR adds...
disable_nunjucks.