TOC doesn't reflect structure generated by clerk/fragment

Open
#513 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
clojure
Domain
frontend

Research direction

Reproduce the issue with the provided clerk/fragment and clerk/md notebook snippet, then trace how the table of contents discovers generated headings. Done means the headings "some" and "other" appear in the TOC when produced inside the fragment.

Written by the indexing model from the issue text.

Description

Quick finding after new release (0.14.919).

Adding the following code into the notebook is not visible in TOC

(clerk/fragment
 (clerk/md "## some")
 (clerk/md "## other"))
Dominant language
Clojure
Stars
2.1k
Forks
87
Avg merge
3m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextjournal/clerk

All issues in nextjournal/clerk

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.