diff --git a/src/cryogen_core/toc.clj b/src/cryogen_core/toc.clj index d0afb95..9c20c22 100644 --- a/src/cryogen_core/toc.clj +++ b/src/cryogen_core/toc.clj @@ -3,6 +3,7 @@ [hiccup.core :as hiccup])) (def _h [:h1 :h2 :h3 :h4 :h5 :h6]) + (defn- compare_index [i1 i2] (- (.indexOf ^clojure.lang.APersistentVector _h i2) (.indexOf ^clojure.lang.APersistentVector _h i1))) (defn- get-headings @@ -18,7 +19,6 @@ headings))) [] content)) - (defn make-links "Create a table of contents from the given headings. This function will look for either: @@ -43,8 +43,8 @@ (hiccup/html entry)) tag))))) (str acc li-close))))) - (def _list-types {true ["