Use Node.ID for anchor ID

Fixes #2057
This commit is contained in:
Bjørn Erik Pedersen
2016-04-11 13:17:25 +02:00
parent 5ef52294f9
commit cd558958a0
11 changed files with 96 additions and 45 deletions

View File

@@ -235,7 +235,7 @@ func renderShortcode(sc shortcode, parent *ShortcodeWithPage, p *Page, t tpl.Tem
if sc.doMarkup {
newInner := helpers.RenderBytes(&helpers.RenderingContext{
Content: []byte(inner), PageFmt: p.determineMarkupType(),
DocumentID: p.UniqueID(), Config: p.getRenderingConfig()})
DocumentID: p.ID(), Config: p.getRenderingConfig()})
// If the type is “unknown” or “markdown”, we assume the markdown
// generation has been performed. Given the input: `a line`, markdown