mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 17:06:23 +00:00
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:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user