Ab sofort ist der Login auf der Weboberfläche von git.fh-muenster.de bevorzugt über FH Muenster SSO möglich.

Commit 17c331fb authored by Bruno Burke's avatar Bruno Burke 😁

fix reagent.dom/dom-node refer

parent c13e1295
Pipeline #44888 passed with stages
in 1 minute and 43 seconds
(ns lernmeister.components.common
(:require [reagent.core :as reagent]
[reagent.dom :as rdom]
[lernmeister.components.ui :as ui]
[lernmeister.components.static-content.images :refer [the-scream]]))
......@@ -107,7 +108,7 @@
(str code)])
(defn katex-render-in-element [element]
(let [node (reagent/dom-node element)]
(let [node (rdom/dom-node element)]
(when-let [latexstring (first (reagent/children element))]
(js/katex.render latexstring node)
......@@ -3,6 +3,7 @@
:refer [prefix-mapping prefix-set unit-set not-empty-or-minus]]
[reagent.core :as reagent]
[reagent.dom :as rdom]
[lernmeister.components.helper :refer [vec-remove]]))
......@@ -110,7 +111,7 @@
(defn latex-span [latex-string]
(letfn [(katex-render [element]
(let [node (reagent/dom-node element)
(let [node (rdom/dom-node element)
latexstring (first (reagent/children element))]
(when-not (= nil latexstring)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment