-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YAML Front Matter support in Markdown #169
Comments
There are currently no beautifiers (that I have found) that support YAML Front Matter. |
Test is disabled so that Travis CI still marks as successful.
|
I started working on this however I realize now that the |
I will definitely update this after #164, however it is at least working now and you can use it while I develop out #164. Before---
title: This is a title!
name: Derek Worthen
age: young
contact:
email: [email protected]
address: some location
pets:
- cat
- dog
- bat
match: !!js/regexp /pattern/gim
run: !!js/function function() { }
---
- item
- item
- item
1. one
2. two
2. three After---
title: "This is a title!"
name: Derek Worthen
age: young
contact: null
email: "[email protected]"
address: some location
pets:
- cat
- dog
- bat
match: !<tag:yaml.org,2002:js/regexp> /pattern/gmi
run: !<tag:yaml.org,2002:js/function> "function () {\n \n}"
---
- item
- item
- item
1. one
2. two
3. three Hope that looks good to you! |
The build is failing for release v0.20.0. |
Fortunately it looks like the YAML Front Matter library wraps |
Published to v0.20.1! Enjoy 😃 |
Awesome. Thank you so much! :D |
Just updated to v0.20.1, and I'm seeing this: Before
After
|
Hmmm, strangely enough, the same exact Before
After
|
That's very strange. Travis CI already OKed the unit test for the more complex case. I'll have to take another look once I'm home. — On Fri, Jan 2, 2015 at 5:17 AM, Jack Maney [email protected]
|
I'm home now. I am still receiving correct results for both of those tests. @jackmaney, could you run command |
My local pandoc was not the same as Travis CI's and so my beautifications were always different and tests would not match. I used `brew install pandoc` and am now in sync at v1.13.2
So, I have the following markdown with YAML front matter (for use with Jekyll):
When I beautify this, the front matter disappears:
Adding
GitHub Markdown
to the disabled languages prevents the front matter from being eaten. However, it would be nice to have the beautification work.Thank you for your time.
The text was updated successfully, but these errors were encountered: