       (commit fileset tmp))))
 
 (defn content-pre-wrap
-  [parse-form file-exts tracer options]
+  [parse-form file-exts tracer & [pod]]
   (let [tmp     (boot/tmp-dir!)
         prev-fs (atom nil)]
     (boot/with-pre-wrap fileset

                               (boot/by-ext file-exts)
                               add-filedata)
            input-metadata (->>
                            (if-let [pod (:pod options)]
                              (pod/with-call-in @pod ~(parse-form changed-files))
                              (eval (parse-form changed-files)))
                            (trace tracer))

  [m meta    META edn "metadata to set on each entry; keys here will be overridden by metadata in each file"
   o options OPTS edn "options to be passed to the markdown parser"]
  (let [pod     (create-pod markdown-deps)
        options (merge +markdown-defaults+ *opts*)]
    (content-pre-wrap
     (fn [files] `(io.perun.markdown/parse-markdown ~files ~options))
     ["md" "markdown"]
     :io.perun/markdown
     pod)))

(deftask global-metadata
  "Read global metadata from `perun.base.edn` or configured file.
