Matt Price <mopto...@gmail.com> writes:
> I feel like I've seen a solution to this before but I can't find it. Is there > a citation processor that will export citation to simple pandoc format when > exporting to markdown? I need to export to a quarto-compatible (ie, > pandoc-compatible) file. Not that I know of ...? But the pandoc format is roughly the same as Org's, minus the `cite:' keyword. So a quick and dirty manual workaround is: 1. Make a copy of the Org file 2. In the copy, remove the `cite' bits, e.g. with `M-x query-replace [cite: RET [ RET !' 3. Export to markdown The resulting [@citations] will be exported literally, since they are not recognized as citations by the exporter, and then they should (more or less) work when processing the .md with pandoc. If that works for you, you could automate the procedure with a markdown-specific Org export filter to do the replacement. The results will need reviewing and occasional manual fiddling, but I gave this a quick test on a paper I'm writing and the results were pretty good. (Of course, all of this is only necessary if you need the citekeys in markdown because you are going to keep working on the file in markdown, for collaboration or whatever. If markdown is only a conversion step, you could just let org-cite format the citations on markdown export and use the resulting text.) Yours, Christian