Add code block to layout elements

This commit is contained in:
Eva 2022-11-16 12:54:16 +01:00
parent 93bbe1b2f8
commit 2a2b5c7dba
12 changed files with 272 additions and 148 deletions

View file

@ -14,7 +14,7 @@
(mf/use-effect
(mf/deps code type block-ref)
(fn []
(hljs/highlightBlock (mf/ref-val block-ref))))
(hljs/highlightElement (mf/ref-val block-ref))))
[:pre.code-display {:class type
:ref block-ref} code]))