Revert "Use Node.ID for anchor ID"

This reverts commit cd558958a0.
This commit is contained in:
Bjørn Erik Pedersen
2016-04-12 18:11:24 +02:00
parent 2468b10eb3
commit 39c9ae3108
11 changed files with 45 additions and 96 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.ID(), Config: p.getRenderingConfig()})
DocumentID: p.UniqueID(), Config: p.getRenderingConfig()})
// If the type is “unknown” or “markdown”, we assume the markdown
// generation has been performed. Given the input: `a line`, markdown