Skip to content

Commit c3c0b46

Browse files
authored
Fix #32: remove stale notebook (#46)
1 parent d9b8d88 commit c3c0b46

File tree

3 files changed

+5
-49
lines changed

3 files changed

+5
-49
lines changed

deps.edn

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,10 @@
1818
:paths ["README.md"
1919
"CHANGELOG.md"
2020
"notebooks/try.clj"
21-
"notebooks/images.clj"
2221
"notebooks/pandoc.clj"
2322
"notebooks/parsing_extensibility.clj"
2423
"notebooks/benchmarks.clj"
2524
"notebooks/tight_lists.clj"]}}
26-
27-
:quiet
28-
{:jvm-opts ["-Dpolyglot.engine.WarnInterpreterOnly=false"]}
29-
3025
:dev
3126
{:extra-paths ["dev" "notebooks"]
3227
:extra-deps {applied-science/js-interop {:mvn/version "0.3.3"}
@@ -36,8 +31,7 @@
3631
io.github.nextjournal/clerk {:git/sha "f4c5488e36c8df11fe352889544e7deb9af73cb7"
3732
:exclusions [io.github.nextjournal/markdown]}
3833
nubank/matcher-combinators {:mvn/version "3.8.3"}
39-
hiccup/hiccup {:mvn/version "2.0.0-RC5"}
40-
org.graalvm.js/js {:mvn/version "21.3.2.1"}}}
34+
hiccup/hiccup {:mvn/version "2.0.0-RC5"}}}
4135

4236
:test
4337
{:extra-paths ["test"]

dev/nextjournal/markdown/parser.cljc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
(ns nextjournal.markdown.parser
2222
(:require [clojure.string :as str]
2323
[clojure.zip :as z]
24+
[nextjournal.markdown :as md]
2425
[nextjournal.markdown.transform :as md.transform]
2526
[nextjournal.markdown.utils.emoji :as emoji]
2627
#?@(:cljs [[applied-science.js-interop :as j]])))
@@ -293,7 +294,7 @@ par
293294
#### Four
294295
295296
end"
296-
nextjournal.markdown/parse
297+
md/parse
297298
:toc
298299
))
299300
;; endregion
@@ -359,7 +360,7 @@ end"
359360
(push-node doc (footnote-ref (+ (count footnotes) (get-in* token [:meta :id]))
360361
(get-in* token [:meta :label]))))
361362

362-
(defmethod apply-token "footnote_anchor" [doc token] doc)
363+
(defmethod apply-token "footnote_anchor" [doc _token] doc)
363364

364365
(defmethod apply-token "footnote_open" [{:as doc ::keys [footnote-offset]} token]
365366
;; consider an offset in case we're parsing multiple inputs into the same context
@@ -404,7 +405,7 @@ end"
404405
Takes and returns a parsed document. When the document has footnotes, wraps every top-level block which contains footnote references
405406
with a `:footnote-container` node, into each of such nodes, adds a `:sidenote-column` node containing a `:sidenote` node for each found ref.
406407
Renames type `:footnote-ref` to `:sidenote-ref."
407-
[{:as doc ::keys [path] :keys [footnotes]}]
408+
[{:as doc ::keys [_path] :keys [footnotes]}]
408409
(if-not (seq footnotes)
409410
doc
410411
(let [root (->zip doc)]

notebooks/images.clj

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)