mirror of
https://github.com/penpot/penpot.git
synced 2025-05-12 18:16:38 +02:00
✨ Add code block to layout elements
This commit is contained in:
parent
93bbe1b2f8
commit
2a2b5c7dba
12 changed files with 272 additions and 148 deletions
|
@ -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]))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue