From 50514a6daf17447331058d3c12c25b67e5e41f84 Mon Sep 17 00:00:00 2001 From: Andrea Amantini Date: Mon, 8 Jul 2024 15:05:16 +0200 Subject: [PATCH] heading level --- src/nextjournal/markdown/commonmark.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nextjournal/markdown/commonmark.clj b/src/nextjournal/markdown/commonmark.clj index 57d98cd..7f68d7f 100644 --- a/src/nextjournal/markdown/commonmark.clj +++ b/src/nextjournal/markdown/commonmark.clj @@ -90,7 +90,7 @@ (-> loc (z/append-child {:type :blockquote :content []}) z/down z/rightmost)) (defmethod open-node Heading [loc ^Heading node] - (-> loc (z/append-child {:type :heading :content [] :level (.getLevel node)}) z/down z/rightmost)) + (-> loc (z/append-child {:type :heading :content [] :heading-level (.getLevel node)}) z/down z/rightmost)) (defmethod open-node BulletList [loc ^ListBlock node] (-> loc (z/append-child {:type :bullet-list :content [] :tight? (.isTight node)}) z/down z/rightmost))