From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: problem with markdown exporter Date: Wed, 20 Aug 2014 14:03:05 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKAH2-0002Gn-RT for emacs-orgmode@gnu.org; Wed, 20 Aug 2014 14:06:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKAGt-0002ki-By for emacs-orgmode@gnu.org; Wed, 20 Aug 2014 14:06:16 -0400 Received: from mail-qc0-x232.google.com ([2607:f8b0:400d:c01::232]:49824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKAGt-0002kY-86 for emacs-orgmode@gnu.org; Wed, 20 Aug 2014 14:06:07 -0400 Received: by mail-qc0-f178.google.com with SMTP id x3so8104090qcv.37 for ; Wed, 20 Aug 2014 11:06:06 -0700 (PDT) Received: from gorgonzola (c-71-58-77-153.hsd1.pa.comcast.net. [71.58.77.153]) by mx.google.com with ESMTPSA id p6sm10641125qag.40.2014.08.20.11.06.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Aug 2014 11:06:06 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-Mode Mailing List 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 "%s" 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.