Raw HTML Omitted in templates
I just found this code that I am adapting for my summaries. When I add the code below to it, I get raw HTML Omitted message where <sup></sup> should be. How can this be rectified? |...
View ArticleRaw HTML Omitted in templates
Try piping through safeHTML gohugo.io – 1 Feb 17 safeHTML Declares a provided string as a "safe" HTML document to avoid escaping by Go templates. Read full topic
View ArticleRaw HTML Omitted in templates
I did before I posted. Didn’t work. Any ideas? cc @jmooring. Read full topic
View ArticleRaw HTML Omitted in templates
Arif: raw HTML Omitted Are you calling the partial from a template, or from a shortcode? Read full topic
View ArticleRaw HTML Omitted in templates
jmooring: Are you calling the partial from a template Yes. From a template. Read full topic
View ArticleRaw HTML Omitted in templates
Are you passing something through markdownify or .Page.RenderString? Read full topic
View ArticleRaw HTML Omitted in templates
jmooring: .Page.RenderString Yes for this option. Read full topic
View ArticleRaw HTML Omitted in templates
The <!-- raw HTML omitted --> HTML comment is generated by Goldmark when it renders markdown to HTML. By default it considers HTML mixed with markdown unsafe. To change the default behavior:...
View ArticleRaw HTML Omitted in templates
jmooring: But I wonder if you really need to pass whatever you’re doing through either of those functions. Even without the functions, the raw HTML Omitted is also generated. I am using the code for...
View ArticleRaw HTML Omitted in templates
Did you do this yet? [markup.goldmark.renderer] unsafe = true Read full topic
View ArticleRaw HTML Omitted in templates
jmooring: [markup.goldmark.renderer] unsafe = true Yes. But I’d rather not do it just for this one issue. jmooring: But I wonder if you really need to pass whatever you’re doing through either of...
View ArticleRaw HTML Omitted in templates
If you are getting this: <!-- raw HTML omitted --> But you will not do this: [markup.goldmark.renderer] unsafe = true Then you need to change something else. And I can’t tell you what that is...
View ArticleRaw HTML Omitted in templates
My mistake! I was applying safeHTML inside the partial (after all replaceRE occurrences) instead of the code calling the partial. I replaced $.Page.RenderString with safeHTML and it is now working. {{...
View ArticleRaw HTML Omitted in templates
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed. Read full topic
View Article