I've turn on Markdown exporting with (require 'ox-md). Citations aren't
being exported properly, so I'm trying to customize it. I have the
following setup:

(org-add-link-type
 "textcite"  (lambda (key) (org-open-file cby-references-file t nil key))
 (lambda (path desc format)
   (cond
    ((eq format 'latex) (format "\\textcite{%s}" path))
    ((eq format 'md) (format "[@%s]" path))
    ((eq format 'odt) (format "%s" desc))
    ((eq format 'html) (format "<cite>%s</cite>" path))
    )))

Which works for latex, odt, and hml. But it doesn't appear that the
format string is ever being set to 'md, and so the [[cite:foo][Foo,
YYYY]] in my org file isn't getting converted to [@foo].

Searching online I find many strings matching "(eq format 'odt)" or
'latex but none with 'md. Is there some other way to achieve this?

Thanks,

  -k.

Reply via email to