Skip to content

Throw on invalid YAML #1

@strugee

Description

@strugee

I have the following YAML frontmatter in a file:

title: "Hello, World!"
time:
	- epoch: 1487490654
	- utcoffset: "UTC-0"
author: "Alex Jordan"
categories:
	- example

Putting this YAML into a YAML validator returns "Error : A YAML file cannot contain tabs as indentation." It feels like gulp-gray-matter should probably throw in this situation instead of silently not adding the data in the frontmatter to the Vinyl file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions