mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 07:05:10 +00:00
fix: ``` surroundings in code block disappear
close #7015 close #7378 close #5735
This commit is contained in:
@@ -187,6 +187,7 @@
|
||||
|
||||
(defn- save-file-or-block-when-blur-or-esc!
|
||||
[editor textarea config state]
|
||||
(state/set-state! :editor/skip-saving-current-block? true)
|
||||
(state/set-block-component-editing-mode! false)
|
||||
(save-file-or-block! editor textarea config state))
|
||||
|
||||
@@ -293,8 +294,7 @@
|
||||
state)
|
||||
:did-update (fn [state]
|
||||
(reset! (:code-options state) (last (:rum/args state)))
|
||||
state)
|
||||
}
|
||||
state)}
|
||||
[state _config id attr code _theme _options]
|
||||
[:div.extensions__code
|
||||
(when-let [mode (:data-lang attr)]
|
||||
|
||||
Reference in New Issue
Block a user