[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] problem with markdown exporter
From: |
Ken Mankoff |
Subject: |
[O] problem with markdown exporter |
Date: |
Wed, 20 Aug 2014 14:03:05 -0400 |
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 "address@hidden" 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 address@hidden
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.
- [O] problem with markdown exporter,
Ken Mankoff <=