Skip to content

Commit

Permalink
Disable re-highlight
Browse files Browse the repository at this point in the history
Some kind of impedance mismatch between react and highlight.js is
causing a crash.

Disabled this for now. Everything works again, just without
highlighted code.

I'm still considering whether to fix re-highlight, or find something
simpler to replace it.

#376
  • Loading branch information
kimo-k committed Jul 3, 2023
1 parent d0b105b commit ca97c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/day8/re_frame_10x/panels/event/views.cljs
Expand Up @@ -164,11 +164,11 @@
:class (code-style ambiance syntax-color-scheme show-all-code?)
:attr {:on-double-click (handler-fn (rf/dispatch [::event.events/set-show-all-code? (not show-all-code?)]))}
:child (if (some? highlighted-form)
[re-highlight/highlight {:language "clojure"}
[#_re-highlight/highlight :span {:language "clojure"}
(list ^{:key "before"} before
^{:key "hl"} [:span.code-listing--highlighted highlight]
^{:key "after"} after)]
[re-highlight/highlight {:language "clojure"}
[#_re-highlight/highlight :span {:language "clojure"}
form-str])]
[rc/v-box
:class (hljs-error-style ambiance syntax-color-scheme)
Expand Down

0 comments on commit ca97c28

Please sign in to comment.