File tree Expand file tree Collapse file tree 3 files changed +5
-49
lines changed Expand file tree Collapse file tree 3 files changed +5
-49
lines changed Original file line number Diff line number Diff line change 18
18
:paths [" README.md"
19
19
" CHANGELOG.md"
20
20
" notebooks/try.clj"
21
- " notebooks/images.clj"
22
21
" notebooks/pandoc.clj"
23
22
" notebooks/parsing_extensibility.clj"
24
23
" notebooks/benchmarks.clj"
25
24
" notebooks/tight_lists.clj" ]}}
26
-
27
- :quiet
28
- {:jvm-opts [" -Dpolyglot.engine.WarnInterpreterOnly=false" ]}
29
-
30
25
:dev
31
26
{:extra-paths [" dev" " notebooks" ]
32
27
:extra-deps {applied-science/js-interop {:mvn/version " 0.3.3" }
36
31
io.github.nextjournal/clerk {:git/sha " f4c5488e36c8df11fe352889544e7deb9af73cb7"
37
32
:exclusions [io.github.nextjournal/markdown]}
38
33
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" }}}
41
35
42
36
:test
43
37
{:extra-paths [" test" ]
Original file line number Diff line number Diff line change 21
21
(ns nextjournal.markdown.parser
22
22
(:require [clojure.string :as str]
23
23
[clojure.zip :as z]
24
+ [nextjournal.markdown :as md]
24
25
[nextjournal.markdown.transform :as md.transform]
25
26
[nextjournal.markdown.utils.emoji :as emoji]
26
27
#?@(:cljs [[applied-science.js-interop :as j]])))
293
294
#### Four
294
295
295
296
end"
296
- nextjournal.markdown /parse
297
+ md /parse
297
298
:toc
298
299
))
299
300
; ; endregion
359
360
(push-node doc (footnote-ref (+ (count footnotes) (get-in* token [:meta :id ]))
360
361
(get-in* token [:meta :label ]))))
361
362
362
- (defmethod apply-token " footnote_anchor" [doc token ] doc )
363
+ (defmethod apply-token " footnote_anchor" [doc _token ] doc )
363
364
364
365
(defmethod apply-token " footnote_open" [{:as doc ::keys [footnote-offset]} token]
365
366
; ; consider an offset in case we're parsing multiple inputs into the same context
404
405
Takes and returns a parsed document. When the document has footnotes, wraps every top-level block which contains footnote references
405
406
with a `:footnote-container` node, into each of such nodes, adds a `:sidenote-column` node containing a `:sidenote` node for each found ref.
406
407
Renames type `:footnote-ref` to `:sidenote-ref."
407
- [{:as doc ::keys [path ] :keys [footnotes]}]
408
+ [{:as doc ::keys [_path ] :keys [footnotes]}]
408
409
(if-not (seq footnotes)
409
410
doc
410
411
(let [root (->zip doc)]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments