Automatically set extract-options correctly

- Removed state paths [:config :text-formats], [:config :img-formats]
  and [:me :settins :date-formatter] as they have been unused since
  their introduction in 2020
- Converted incorrect js/Error refs
- Also merged db.config test helpers
This commit is contained in:
Gabriel Horner
2022-05-24 10:25:22 -04:00
parent 5bce219ca4
commit e999ebc149
17 changed files with 96 additions and 93 deletions

View File

@@ -6,6 +6,7 @@
[frontend.db :as db]
[frontend.format :as format]
[frontend.state :as state]
[logseq.graph-parser.config :as gp-config]
[logseq.graph-parser.property :as gp-property]
[logseq.graph-parser.mldoc :as gp-mldoc]))
@@ -15,7 +16,7 @@
(gp-block/extract-blocks blocks content with-id? format
{:user-config (state/get-config)
:block-pattern (config/get-block-pattern format)
:supported-formats (config/supported-formats)
:supported-formats (gp-config/supported-formats)
:db (db/get-db (state/get-current-repo))
:date-formatter (state/get-date-formatter)}))