Skip to content

Commit 35149b3

Browse files
committed
Fix parse-level bug by bumping markdown-it-texmath
bug fixed upstream with goessner/markdown-it-texmath#42
1 parent 9ead055 commit 35149b3

File tree

5 files changed

+23
-22
lines changed

5 files changed

+23
-22
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"markdown-it": "^12.2.0",
2424
"markdown-it-block-image": "^0.0.3",
2525
"markdown-it-footnote": "^3.0.3",
26-
"markdown-it-texmath": "^0.9.1",
26+
"markdown-it-texmath": "^1.0.0",
2727
"markdown-it-toc-done-right": "^4.2.0",
2828
"punycode": "2.1.1",
2929
"react": "^18.2.0",

resources/js/markdown.mjs

Lines changed: 16 additions & 16 deletions
Large diffs are not rendered by default.

src/deps.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"markdown-it" "^12.2.0"
44
"markdown-it-block-image" "^0.0.3"
55
"markdown-it-footnote" "^3.0.3"
6-
"markdown-it-texmath" "^0.9.1"
6+
"markdown-it-texmath" "^1.0.0"
77
"markdown-it-toc-done-right" "^4.2.0"
88
"punycode" "2.1.1"}}

src/nextjournal/markdown/parser.cljc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ end"
311311
doc' (assign-node-id+emoji doc)
312312
heading (-> doc' (get-in path) (assoc :path path))]
313313
(cond-> doc'
314+
;; We're only considering top-level headings (e.g. not those contained inside quotes or lists)
314315
(zero? doc-level)
315316
(-> (add-to-toc heading)
316317
(set-title-when-missing heading)))))

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -601,10 +601,10 @@ markdown-it-footnote@^3.0.3:
601601
resolved "https://registry.yarnpkg.com/markdown-it-footnote/-/markdown-it-footnote-3.0.3.tgz#e0e4c0d67390a4c5f0c75f73be605c7c190ca4d8"
602602
integrity sha512-YZMSuCGVZAjzKMn+xqIco9d1cLGxbELHZ9do/TSYVzraooV8ypsppKNmUJ0fVH5ljkCInQAtFpm8Rb3eXSrt5w==
603603

604-
markdown-it-texmath@^0.9.1:
605-
version "0.9.7"
606-
resolved "https://registry.yarnpkg.com/markdown-it-texmath/-/markdown-it-texmath-0.9.7.tgz#4d1256def5f49ac09c48e4a79d715a1bba5025c9"
607-
integrity sha512-2oZ7WO+xQCvQpfCwxUsCzDpz5jRjiY+FbSJSVz+66+Z9NoPR7ljzUNaOp1CDHYj0JWx+drQLxO0XUjuSsuqc0A==
604+
markdown-it-texmath@^1.0.0:
605+
version "1.0.0"
606+
resolved "https://registry.yarnpkg.com/markdown-it-texmath/-/markdown-it-texmath-1.0.0.tgz#65703b235d07a8f96bc58cbf9d478af57154e5f0"
607+
integrity sha512-4hhkiX8/gus+6e53PLCUmUrsa6ZWGgJW2XCW6O0ASvZUiezIK900ZicinTDtG3kAO2kon7oUA/ReWmpW2FByxg==
608608

609609
markdown-it-toc-done-right@^4.2.0:
610610
version "4.2.0"

0 commit comments

Comments
 (0)