0

I already have an org-publish set up that exports to HTMLand it works perfectly.

Now, I am trying to export also to markdown, with the following block

(setq org-publish-project-alist
      '(

;; The other block for HTML, almost identical except for the          
;; :publishing-function org-html-publish-to-html

("mysite-notes-md"
 :base-directory "~/projects/mysite/org/"
 :base-extension "org"
 :exclude "[[:digit:]][[:digit:]]_.*\.org"
 :publishing-directory "~/projects/mysite/docs/"
 :recursive t
 :publishing-function org-gfm-export-to-markdown
 :headline-levels 4       ; Just the default for this project.
 :auto-preamble t
 :sitemap-title "Some site"
 )

("mysite" :components ("mysite-notes"  "mysite-notes-md"))

))

It fails with the following error:

Resetting org-publish-cache
Loading /home/nanounanue/.org-timestamps/mysite-notes-md.cache...
Publishing file /home/nanounanue/projects/mysite/org/index.org using ‘org-gfm-export-to-markdown’
Initializing asynchronous export process

Wrong type argument: stringp, nil

I don'k know what is happening. If I run directly ‘org-gfm-export-to-markdown’ on the buffer, it works correctly

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.