`clerk/fragment` doesn't appear to work in the `tap>` viewer

Open
#690 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by running the reproduction using nextjournal.clerk.tap, clerk/show!, clerk/serve!, and clerk/fragment. Compare the tap> viewer output with normal notebook behavior; done means both fragment examples render as expected in the tap> viewer.

Written by the indexing model from the issue text.

Description

Hi!

Is clerk/fragment supposed to work with the tap> viewer? If not, close this. If yes, I encountered behavior I didn't expect.

Reproduction

  (require 'nextjournal.clerk.tap)
  (require '[nextjournal.clerk :as clerk])
  (clerk/show! 'nextjournal.clerk/tap)
  (clerk/serve! {:browse? true})

  (tap> (clerk/fragment (clerk/table [{:x 1} {:y 2}])
                        (clerk/table [{:x 3} {:y 4}])))

  (tap> (clerk/fragment {:x 1} {:y 2}))

Expected

clerk/fragment works similarly for the tap> viewer and normal notebooks.

Actual

The clerk/fragment doesn't seem to work for the tap> viewer.

With io.github.nextjournal/clerk "0.16.1016", I'm seeing this:

image

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.