Browse Source

fix: roam export replace embeds

Tienson Qin 4 years ago
parent
commit
e57657e79a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/frontend/external/roam_export.cljs

+ 3 - 1
src/main/frontend/external/roam_export.cljs

@@ -57,7 +57,9 @@
             (fn [c]
               (-> c
                   (str/replace todo-marker-regex "{{[[TODO]]}}")
-                  (str/replace done-marker-regex "{{[[DONE]]}}"))))
+                  (str/replace done-marker-regex "{{[[DONE]]}}")
+                  (str/replace "{{embed " "{{embed: ")
+                  (trim))))
     block))
 
 (defn traverse