Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Extract post formatting (YAML headmatter + Markdown) from core #51

Closed
bebraw opened this issue Mar 16, 2015 · 6 comments
Closed

Extract post formatting (YAML headmatter + Markdown) from core #51

bebraw opened this issue Mar 16, 2015 · 6 comments

Comments

@bebraw
Copy link
Member

bebraw commented Mar 16, 2015

In general it should be possible to author posts in whatever format you like. We can provide some defaults at boilerplates but it should be able to complement/replace those with other solutions.

The main benefit here is that you can apply additional loaders (ie. highlight) on content easily if we do this.

The only problem I see here is that YAML headmatter has a special purpose in our system (gets parsed and passed to post template) so that might take some thinking. I guess if it exists, we'll inject the data. Otherwise just skip it.

@eldh
Copy link
Member

eldh commented Mar 16, 2015

If we allow plugins to override which loaders are used, and also override post parsing then this shouldn't be that tricky to do. But interoperability with other plugins become harder if we can't guarantee what will be passed in preProcess and postProcess hooks. So I'd vote for being a bit opinionated here. highlighting etc can pretty easily be done in postProcessing.

@eldh
Copy link
Member

eldh commented Mar 16, 2015

We can also override each step of the post processing with plugins (url, content etc)

@iamstarkov
Copy link

In general it should be possible to author posts in whatever format you like.

what do you mean by this?

@iamstarkov
Copy link

one of the reason why I left jekyll bloging is mandatory of yaml header, while we can extract almost everything from raw content of markdown article. Title, date, desc, image, content (text nodes in text and in html) it’s all extractable from my perspective

@iamstarkov
Copy link

So the question is do you really want to force everybody to use yaml headers or it is not mandatory?

@bebraw
Copy link
Member Author

bebraw commented Jun 19, 2015

This issue is actually obsolete. We aren't dependent on Markdown anymore. If YAML headmatter exists we'll parse that but it doesn't matter if it's missing.

@bebraw bebraw closed this as completed Jun 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants