Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Conversation

@kodfodrasz
Copy link
Contributor

Fixes #262.

Adds a few tests to FrontMatter parsing of more complex datastructures, including failing ones for lists of lists and lists of dictionaries.
Adds (an admittedly uggly) quick-fix for handling of lists in the front-matter.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a way to avoid the double cast (is / as YamlScalarNode)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is: If I'd project the items with as and filter nulls, and compare the length of the lists. This is more readble in my opinion.

@laedit
Copy link
Contributor

laedit commented Aug 18, 2015

Thanks for your PR!
It doesn't look so bad for a quickfix :)

@laedit
Copy link
Contributor

laedit commented Aug 18, 2015

Good for me.

laedit pushed a commit that referenced this pull request Aug 18, 2015
@laedit laedit merged commit 569128a into Code52:master Aug 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lists of complex types are ignored in the front matter

2 participants