-
-
Notifications
You must be signed in to change notification settings - Fork 61
CSL YAML biblio files don’t work without “references” header #124
Comments
Can you link to a sample CSL JSON file? |
Sure. Try this short one: https://gist.github.com/nickbart1980/006edc5db336da89541f |
Note that you can convert these CSL JSON files to pandoc YAML using |
Just to amplify this a bit: |
I see. What I found attractive about using a generic json2yaml is to sort the arrays in a JSON file for better readability, and then use a json2yaml that preserves this order, such as https://github.com/drbild/json2yaml. |
Pandoc's YAML reference format uses pandoc Markdown, rather than the The order of fields is another issue. It would be nice if |
OK, so it seems not much can be done at the moment. I submitted a pull request to update the documentation on this in https://github.com/jgm/pandoc/blob/master/README (BTW, http://pandoc.org/README.html has not been updated in a while …).
Something similar could be added to CSL JSON output, too, but I’m not sure what comment format can be used in CSL JSON files. |
Good! Data.Yaml.Builder will allow us to specify the order of fields. |
This API is not so easy to work with (and it's marked as unstable), so this may need to go on the back burner. |
Fair enough. |
Btw, I'm working on better YAML output with a more rational ordering of +++ nickbart1980 [May 08 15 03:59 ]:
|
I have now pushed the changes for better YAML output (much +++ nickbart1980 [May 08 15 03:59 ]:
|
OK, I'm going to close this.
|
CSL YAML biblio files produced from a valid CSL JSON file by
json2yaml
don’t work because the content is not wrapped inreferences
/---
and...
.I don’t think this should be a requirement for YAML files when they are explicitly identified as biblio files via the command line (
--bibliography=
) or via abibliography:
metadata value.The text was updated successfully, but these errors were encountered: