clerk

manas_marthi 2025-03-03T05:27:50.458509Z

How can I configure Clerk to output the HTML in the reverse order of the forms given in the file?

Andrea 2025-03-03T16:24:42.699409Z

Override the default notebook viewer to first reverse the blocks. This should do the trick (if I understand what you need to do)

(clerk/add-viewers! [(update v/notebook-viewer
                             :transform-fn comp #(update-in % [:nextjournal/value :blocks] reverse))])

manas_marthi 2025-03-03T18:53:36.907319Z

thank you. I will try this