diff --git a/Library/Std/Tag.md b/Library/Std/Tag.md index c777afc3..859ab12b 100644 --- a/Library/Std/Tag.md +++ b/Library/Std/Tag.md @@ -36,6 +36,15 @@ event.listen { text = text .. "## Items\n" .. template.each(taggedItems, templates.itemItem) end + 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 return { text = text, -- Read only page