logseq-to-org-roam/remove-custom-ids.el
2024-04-20 09:53:57 +00:00

7 lines
331 B
EmacsLisp

;;; remove-custom-ids.el --- Remove CUSTOM_ID property assigned by pandoc org parser -*- lexical-binding: t; -*-
(defun logseq/remove-custom-ids (graphdir)
(dolist (file (directory-files-recursively graphdir "org$"))
(with-temp-file file
(insert-file-contents file)
(org-delete-property-globally "CUSTOM_ID"))))