package metadata import ( "bufio" "bytes" "crypto/sha256" "fmt" "regexp" "strings" "github.com/reconquest/pkg/log" ) const ( HeaderParent = `Parent` HeaderSpace = `Space` HeaderType = `Type` HeaderTitle = `Title` HeaderLayout = `Layout` HeaderAttachment = `Attachment` HeaderLabel = `Label` HeaderInclude = `Include` HeaderSidebar = `Sidebar` ContentAppearance = `Content-Appearance` ) type Meta struct { Parents []string Space string Type string Title string Layout string Sidebar string Attachments []string Labels []string ContentAppearance string } const ( FullWidthContentAppearance = "full-width" FixedContentAppearance = "fixed" ) var ( reHeaderPatternV2 = regexp.MustCompile(``) reHeaderPatternMacro = regexp.MustCompile(`