Skip to content
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

Formatting breaks front matter #3

Closed
benbalter opened this issue Mar 16, 2015 · 2 comments
Closed

Formatting breaks front matter #3

benbalter opened this issue Mar 16, 2015 · 2 comments

Comments

@benbalter
Copy link

This package sounds like exactly what I've been looking for for a long time, but unfortunately, it doesn't play nicely with markdown files that contain YAML front matter (e.g., Jekyll sites, used in places like GitHub pages).

YAML front matter might look like this:

---
title: "Awesome markdown file"

---

My content

Right now, this would create an HR followed by an H1. Instead, it'd be great if the plugin (or upstream library) could split the content on /^---\n.*?\n---\n\n/m and not act on the first element, if present.

@notslang
Copy link
Owner

Yeah, this is worth supporting in tidy-markdown - I'll add that.

@notslang
Copy link
Owner

@benbalter - if you update, this feature will now work

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

No branches or pull requests

2 participants