在HUGO中使用内嵌HTML的方法
new房昭之
2020年01月30日 13:02

在昨天的文章中,我提到,hugo默认情况下无法正常显示markdown中内嵌的html,在生成的网页中,html会被<!-- raw HTML omitted -->替代。

百度无果后,我在必应搜到了解决方法。

在2019年11月的hugo更新中,使用了Goldmark作为默认库

想要内嵌html,就得在config.toml中加入下面代码

[markup]  

[markup.goldmark]    

[markup.goldmark.renderer]     

unsafe = true

cut-off

测试中的物语资源小站:rikka.top