Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

strip_yaml_front_matter work incorrectly when the file body containts '---' #180

Closed
kliu opened this issue Feb 28, 2014 · 2 comments
Closed
Assignees

Comments

@kliu
Copy link

kliu commented Feb 28, 2014

All the contents after the front-matter and before the last one --- will be deleted when the strip_yaml_front_matter option is true.

For example:


---
layout: post
title: "Test"

---

foo

---
bar

The foo will not appear in the exported html.

This issue also affects the file that contains the markdown fromat table.

@facelessuser facelessuser self-assigned this Jul 7, 2014
@facelessuser
Copy link
Collaborator

This is actually a pretty easy fix. The regex is just being too greedy. I will patch this in the next release.

@facelessuser
Copy link
Collaborator

This should now be fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants