diff --git a/pkg/renderer/sgml/sgml.go b/pkg/renderer/sgml/sgml.go index 04a604bf..5e550e48 100644 --- a/pkg/renderer/sgml/sgml.go +++ b/pkg/renderer/sgml/sgml.go @@ -71,6 +71,7 @@ elements: break elements } } + metadata.Attributes = ctx.attributes if ctx.sectionNumbering, err = doc.SectionNumbers(); err != nil { return metadata, errors.Wrapf(err, "unable to render full document") } diff --git a/pkg/types/types.go b/pkg/types/types.go index d75f6d70..31ffe7a2 100644 --- a/pkg/types/types.go +++ b/pkg/types/types.go @@ -208,6 +208,7 @@ type Metadata struct { TableOfContents *TableOfContents Authors []*DocumentAuthor Revision DocumentRevision + Attributes Attributes } func NewTableOfContents(maxDepth int) *TableOfContents {