mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-23 21:32:41 +08:00
fix #74 meta now knows about Include directives
This commit is contained in:
parent
bf4bbbe20a
commit
b17a955ec7
@ -17,6 +17,7 @@ const (
|
||||
HeaderLayout = `Layout`
|
||||
HeaderAttachment = `Attachment`
|
||||
HeaderLabel = `Label`
|
||||
HeaderInclude = `Include`
|
||||
)
|
||||
|
||||
type Meta struct {
|
||||
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user