Просмотр исходного кода

fix: removing tags from content

when two tags have same prefix e.g. foo and foo-bar.
Similar issue to b34325be77a4c101c8e817f2302bdadc2e4b8516.
Also tweaked import wording
Gabriel Horner 1 год назад
Родитель
Сommit
2232fc8a1d

+ 1 - 1
deps/graph-parser/src/logseq/graph_parser/exporter.cljs

@@ -135,7 +135,7 @@
           (common-util/replace-ignore-case (str "#" tag) "")
           (common-util/replace-ignore-case (str "#" page-ref/left-brackets tag page-ref/right-brackets) "")))
     content
-    tags)
+    (sort > tags))
    (string/trim)))
 
 (defn- update-block-tags

+ 3 - 2
src/main/frontend/components/imports.cljs

@@ -201,8 +201,9 @@
         [:span.text-sm.mr-2 "Import all tags"]
         (shui/checkbox {:default-checked convert-all-tags-input
                         :on-checked-change set-convert-all-tags-input!})]
-       [:div.text-sm
-        "Only import these tags. Tags are case insensitive and separated by commas"]]]
+       [:div
+        [:span.text-sm "Import only these tags. "]
+        [:span.text-xs "Tags are case insensitive and separated by commas"]]]]
      (shui/input
       {:class "my-2 mb-4"
        :default-value tag-classes-input