mirror of
https://github.com/facundoolano/jorge.git
synced 2024-11-16 07:47:40 +01:00
configure go-org to play nicely with pretty url links
This commit is contained in:
parent
ea8041ed3d
commit
f5cfe0aecf
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue