gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
76.03k stars 7.54k forks source link

Improve the "raw HTML omitted" warning message #13023

Closed jmooring closed 2 weeks ago

jmooring commented 2 weeks ago

Change this:

Raw HTML omitted from "/home/user/project/content/example.md"

To this:

Raw HTML omitted while rendering "/home/user/project/content/example.md"

We should change the message because markdownify and .Page.RenderString can also trigger this warning, and it may have nothing to do with anything in the content file.

Reference: https://discourse.gohugo.io/t/52280/6