configure go-org to play nicely with pretty url links

This commit is contained in:
facundo 2024-07-04 20:22:45 -03:00
parent ea8041ed3d
commit f5cfe0aecf

View file

@ -152,6 +152,8 @@ func (templ Template) RenderWith(context map[string]interface{}, hlTheme string)
// make * -> h1, ** -> h2, etc
htmlWriter.TopLevelHLevel = 1
// handle relative paths in links
htmlWriter.PrettyRelativeLinks = true
if hlTheme != NO_SYNTAX_HIGHLIGHTING {
htmlWriter.HighlightCodeBlock = highlightCodeBlock(hlTheme)
}