Paragraph tag not listing items (shows 'nil') in v2 Docker image

I’m working with the v2 Docker image.
It seems that the paragraph tag isn’t functioning properly. When I click on the paragraph tag, it shows “nil” and doesn’t appear to list anything.
Is there a way to fix this issue? I’d appreciate any guidance on where to look or what to check.

What exactly are you trying to do? And what have you tried?

Thank you for your comment.
What I’m trying to do is add a tag inside the body of a note. Then, I click on that tag.
What I expected was that, as a paragraph tag, clicking it would take me to a page where all pages and paragraph with that paragraph tag are listed. However, that’s not what’s happening in my case.

This is a bug. I will create an issue on the github for it.

The tag page is trying to render the paragraphs as items, but the item template is printing out the name. Paragraphs don’t have a name value. They do have text, though.

-- the listener that handles pages with `tag: ` uses itemItem
    local taggedParagraphs = query[[
      from index.tag "paragraph"
      order by ref
      where table.includes(_.tags, tagName)
    ]]
    if #taggedParagraphs > 0 then
      text = text .. "## Paragraphs\n"
        .. template.each(taggedParagraphs, templates.itemItem)
    end

-- and the itemItem expects a name:
templates.itemItem = template.new([==[
* ${name}
]==])
2 Likes

Just merged the fix. Thanks!