fix: ``` surroundings in code block disappear

close #7015
close #7378
close #5735
This commit is contained in:
Tienson Qin
2022-11-22 10:11:32 +08:00
parent e6fa986083
commit 0a796d11da
3 changed files with 16 additions and 8 deletions

View File

@@ -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)]