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

Pandoc YAML metadata block #2

Closed
hugoroy opened this issue Aug 20, 2014 · 8 comments
Closed

Pandoc YAML metadata block #2

hugoroy opened this issue Aug 20, 2014 · 8 comments

Comments

@hugoroy
Copy link

hugoroy commented Aug 20, 2014

It would be awesome to be able to use pandoc’s metadata feature to replace the way ikiwiki usually required metadata http://johnmacfarlane.net/pandoc/README.html#yaml-metadata-block

@sciunto
Copy link
Member

sciunto commented Aug 20, 2014

Hi Hugo,

I'm running a bit out of time, but if you have a patch to suggest, I'd be happy to integrate it :)

Best.

@hugoroy
Copy link
Author

hugoroy commented Aug 20, 2014

Is there a doc?

@sciunto
Copy link
Member

sciunto commented Aug 20, 2014

Nothing else than that README file. But the script is simple.

My main contribution was to gather various versions available because nobody took care to merge fixes. So, I kept the best of each version.

@hugoroy
Copy link
Author

hugoroy commented Aug 20, 2014

Okay, so maybe a new option could be added:
pandoc_yaml-metadata-block and so instead of using ikiwiki’s
meta directive this
would use pandoc’s yaml option as described in
http://johnmacfarlane.net/pandoc/README.html#yaml-metadata-block

But it’s unclear to me how the script would work to give to
ikiwiki the variables (author, date, tags, copyright, license,
language, etc.) used in the ikiwiki template.

Thanks for your help!

PS: for some context, I’m not usually a programmer 😉

@sciunto
Copy link
Member

sciunto commented May 31, 2015

Sorry, I have been super slow on this but I just tried with the current plugin and a % title correctly change the title (http://pandoc.org/README.html#metadata-blocks). It's done at the bottom of this file: https://github.com/sciunto/ikiwiki-pandoc/blob/master/pandoc.pm

http://pandoc.org/README.html#metadata-blocks

@bk
Copy link
Collaborator

bk commented Dec 14, 2015

My PR #5 adds support for YAML metadata blocks and corrects the handling of title, author and date in the legacy %-prefix metadata header type.

@hugoroy
Copy link
Author

hugoroy commented Dec 14, 2015

This looks awesome, I will need to test this out when I have more time 👍

@sciunto
Copy link
Member

sciunto commented Dec 18, 2015

Closed by #5.

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

3 participants