Create new export format?

I would love to be able to create a new export format for items from my Zotero library. I think it's great that when I'm adding a citation to Wikipedia I can just drag and drop my items into the edit form and Zotero outputs the data it has for that entry in Wikipedia's citation format. I'd like to have that kind of functionality for when I'm referencing items in markdown documents, e.g. I'd like a Zotero export format that outputs:

*<title>*, doi:[<doi>](https://doi.org/<doi>;)

I found lots of documentation regarding how to write and install new CSL files, but that seems like overkill to me. Is it possible to specify a custom format (like the Wikipedia citation template) for the export function?
  • Something like this, I guess.

    That's just a sample. If you play with it a bit, you'll see that it only produces useful references for items that have a title and a DOI - so books and even blog posts show no link. Also, untitled items just say "Untitled item," and there is no attempt at disambiguation, so things with identical titles and no DOI would be indistinguishable.

    To produce reasonably useful cites across the board, you would need to extend things. CSL is the right language for that.
  • That does exactly what I was hoping for, thanks! I guess this also implies that what I wanted was not the creation of a new format for the "Export Item..." option, but simply a new (albeit incomplete) citation style.
  • I wrote a bunch of styles that do plaintext e.g.
    https://github.com/danmackinlay/styles/blob/master/markdown.csl
    It's not so bad if you use the visual editor: http://editor.citationstyles.org/visualEditor/
Sign In or Register to comment.