Browse Source

enhance: replace class of macro name to seperate data attribute
avoids css conflicts for certain macro names

sallto 2 years ago
parent
commit
ad4b3a8315
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/components/block.cljs

+ 2 - 1
src/main/frontend/components/block.cljs

@@ -948,7 +948,8 @@
 
 
 (defn- render-macro
 (defn- render-macro
   [config name arguments macro-content format]
   [config name arguments macro-content format]
-  [:div {:class (str "macro " name)}
+  [:div.macro {:data-macro-name name}
+   
    (if macro-content
    (if macro-content
      (let [ast (->> (mldoc/->edn macro-content (gp-mldoc/default-config format))
      (let [ast (->> (mldoc/->edn macro-content (gp-mldoc/default-config format))
                     (map first))
                     (map first))