我想自定义一个 org 的发布函数,先导出为 markdown,再导出为html, 该怎么做

这个问题到现在还没解决
https://emacs-china.org/t/org-wrong-type-argument-number-or-marker-p-nil/18278/2

不过最近我试了一下这个帖子
https://emacs-china.org/t/topic/5427/30
我发现 org-hugo-export-to-md 挺好用的,我有一个大胆的想法,自定义一个发布函数,先导出为markdown,再导出为html,然后删掉原来的markdown ,就是函数不会写,请各位教我一下


另外我习惯通过 org-publish-project-alist 来导出文件,

	  org-publish-project-alist
	  '(
	    ("images"
	     :base-directory "~/ChiniBlogs/src/"
	     :base-extension "jpg\\|png\\|gif"
	     :publishing-directory "~/ChiniBlogs/html"
	     :publishing-function org-html-export-to-html)
	    
	    ("wiki-html"
	     :base-directory "~/ChiniBlogs/src/"
	     :base-extension "org"
	     :publishing-directory "~/ChiniBlogs/html"
	     :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"css/org.css\"/>"
	     ;; :recursive t
	     :publishing-function org-html-export-to-html
	     :auto-preamble t
	     :section-numbers nil
	     :author "Steiner"
	     :headline-levels 4)
	    ("chini-blog"
	     :components ("images", "wiki-html")))))

:publishing-function 设置为 org-hugo-export-to-md 的时候,导出一个文件时给了我一个错误
user-error: Before first headline at position 1 in buffer provider.org
不知道怎么解决

这是我的 ox-hugo 配置

(use-package ox-hugo
  :ensure t
  :after ox
  :config
  (setq org-hugo-base-dir "/home/steiner/ChiniBlogs/markdown"))