fix: update all db graph uses of mldoc to use db config

Left a few uses of gp-mldoc/default-config but only in file graph
specific locations or functionality that wasn't related to db graphs
e.g. handler. plugin. Also removed format/get-default-config as it was unused

Part of LOG-2741
This commit is contained in:
Gabriel Horner
2023-10-27 14:06:01 -04:00
parent af416ec352
commit 3f773ed876
17 changed files with 65 additions and 82 deletions

View File

@@ -3,7 +3,6 @@
[frontend.db :as db]
[frontend.format.block :as block]
[logseq.graph-parser.util :as gp-util]
[logseq.graph-parser.mldoc :as gp-mldoc]
[logseq.graph-parser.block :as gp-block]
[logseq.graph-parser.util.block-ref :as block-ref]
[clojure.string :as string]
@@ -25,7 +24,7 @@
(when-let [editing-block (state/get-edit-block)]
(let [page-id (:db/id (:block/page editing-block))
blocks (block/extract-blocks
(mldoc/->edn text (gp-mldoc/default-config format))
(mldoc/->edn text format)
text format
{:page-name (:block/name (db/entity page-id))})
blocks' (gp-block/with-parent-and-left page-id blocks)]