Skip to content

Commit

Permalink
fix #74 meta now knows about Include directives
Browse files Browse the repository at this point in the history
  • Loading branch information
kovetskiy committed Mar 16, 2021
1 parent bf4bbbe commit b17a955
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/mark/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const (
HeaderLayout = `Layout`
HeaderAttachment = `Attachment`
HeaderLabel = `Label`
HeaderInclude = `Include`
)

type Meta struct {
Expand Down Expand Up @@ -95,6 +96,10 @@ func ExtractMeta(data []byte) (*Meta, []byte, error) {
case HeaderLabel:
meta.Labels = append(meta.Labels, value)

case HeaderInclude:
// Includes are parsed by a different func
continue

default:
log.Errorf(
nil,
Expand Down

0 comments on commit b17a955

Please sign in to comment.