Example: Include `autoHeaderIds` as `false` in the list to disable Blackfriday's `EXTENSION_AUTO_HEADER_IDS`. <br>
*See [Blackfriday extensions](#blackfriday-extensions) section for information on all extensions.*
+`skipHTML`
+: default: **`false`** <br>
+ Blackfriday flag: **`HTML_SKIP_HTML`** <br>
+ Purpose: `true` causes any HTML in the markdown files to be skipped.
+
## Blackfriday extensions
`noIntraEmphasis`
PlainIDAnchors bool
Extensions []string
ExtensionsMask []string
+ SkipHTML bool
}
// NewBlackfriday creates a new Blackfriday filled with site config or some sane defaults.
"latexDashes": true,
"plainIDAnchors": true,
"taskLists": true,
+ "skipHTML": false,
}
maps.ToLower(defaultParam)
htmlFlags |= blackfriday.HTML_SMARTYPANTS_LATEX_DASHES
}
+ if ctx.Config.SkipHTML {
+ htmlFlags |= blackfriday.HTML_SKIP_HTML
+ }
+
return &HugoHTMLRenderer{
cs: c,
RenderingContext: ctx,