"Add" CSL YAML
See original GitHub issueThis and this suggests we can use our JSON schemas to validate a YAML alternative.
Pandoc already supports a YAML alternative (cc @jgm).
I suggest we do something with this, since it’s zero work for us, and would give more options for users and developers.
Perhaps most sensible option is just adding a sentence to the spec that mentions this possibility, without requiring implementations to support it?
Edit: actually, we say nothing about input in the spec currently. So we would need to add a section on input data, and say that our schema can validate either json or yaml.
Proposal
Based on this discussion, we should:
- review the existing json schema for any possible adjustments we might want to make now. Date parts are one obvious discrepancy; are there any others?
- add an optional field for the content markup format to parse; the html subset could be default, and we could enumerate other options; say
markup: org
.
_Originally posted by @bdarcus in https://github.com/citation-style-language/schema/issues/277#issuecomment-650192158_
Issue Analytics
- State:
- Created 3 years ago
- Comments:96 (67 by maintainers)
Top Results From Across the Web
jglev/YAML-CSL: A Citation Style Language (CSL) file for ...
This CSL file is an adaptation of APA 6th ed. by Kornblith et al. to create YAML-style metadata from a citation (in place...
Read more >Use custom citation style in markdown using YAML header
I am using the knitcitations package to cite using the document's DOI, and the bibliography() function to write the bibliography. I have also ......
Read more >CSL 1.0.2 Specification
The Citation Style Language (CSL) is an XML-based format to describe the formatting of citations, notes and bibliographies, offering: An open format; Compact ......
Read more >4.5 Bibliographies and citations | R Markdown Cookbook
To suppress the mention of the author, add a minus sign before @ , e.g., [-@R-base] . ... output: html_document bibliography: references.bib csl: ......
Read more >Set citation-related YAML options — yml_citations • ymlthis
Path to a CSL abbreviations JSON file. See the pandoc-citeproc documentation. Note that the actual YAML field is citation-abbreviations . link_citations.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems that this works with pandoc-citeproc to specify an open range:
But I wouldn’t worry too much about my data model, since I’m planning to transition eventually to the new citeproc library I’m writing. It already passes more citeproc tests than pandoc-citeproc, and it’s much faster and more maintainable. It uses the date-parts model that is part of current CSL.
So how about this:
Proposal
markup
element indicating the type of markup used (“none”, HTML, Markdown, TeX, Docbook, etc.) for other markup syntax.@jgm I mean no disrespect; sorry if I’ve come off otherwise. pandoc is the single most amazing piece of software I’ve encountered, and I use it daily. I’m just hoping to maintain as much compatibility for GUI users as possible.