Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
;; unchanged (bb already has real java.time; this just adds tick's
;; API on top of it).
io.github.jolt-lang/time {:git/url "https://github.com/jolt-lang/time.git"
:git/sha "abeee49974c2c4efa2fa75c96d9a379822c6815f"}}
:git/sha "06dfc4e744f256ba2c3cdfc611c45845c3269908"}}
:tasks
{;; tick.core first, unconditionally -- see the io.github.jolt-lang/time
;; comment above :deps. Everything after it in this list, and every
Expand Down
6 changes: 3 additions & 3 deletions test/site/markdown_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,13 @@
;; this pins the JVM-side behavior this function must keep matching).
(testing "preamble before the first heading becomes its own leading chunk"
(is (= ["pre" "<h2 id=\"a\">A</h2>mid" "<h2 id=\"b\">B</h2>end"]
(md/split-before-h2-headings "pre<h2 id=\"a\">A</h2>mid<h2 id=\"b\">B</h2>end"))))
(#'md/split-before-h2-headings "pre<h2 id=\"a\">A</h2>mid<h2 id=\"b\">B</h2>end"))))
(testing "no preamble when the body starts exactly at a heading"
(is (= ["<h2 id=\"a\">A</h2>mid" "<h2 id=\"b\">B</h2>"]
(md/split-before-h2-headings "<h2 id=\"a\">A</h2>mid<h2 id=\"b\">B</h2>"))))
(#'md/split-before-h2-headings "<h2 id=\"a\">A</h2>mid<h2 id=\"b\">B</h2>"))))
(testing "no headings at all returns the whole string as one chunk"
(is (= ["just prose, no headings"]
(md/split-before-h2-headings "just prose, no headings")))))
(#'md/split-before-h2-headings "just prose, no headings")))))

(deftest collapse-long-sections-leaves-short-pages-untouched
;; Below collapse-min-long-sections (5) the page reads as prose, and
Expand Down
Loading