Skip to content

source block with name and url does not get rendered #848

Description

@AdriDevelopsThings

Hi you all,
first thanks for the awesome project. I now have some problems with the source tag in the recipe metadata.

I'm trying to configure a recipe where I set source with name and url, like that:

---
title: Recipe
source:
  name: Some name
  url: https://website.org
---

When a then run cook server (version 0.41.1) the source does not get rendered at all. If I configure

---
title: Recipe
source.name: Some name
source.url: https://website.org
---

the source (with the name) and an url (source.url) gets rendered instead of just the source but with a link on the name. I think, first of all, both options should have the same result, and the result should be that the source tag is shown with the source name as visible text and the url as url. What do you think?

Best
Adri

Activity

  1. jjohnnystwsss commented on Nov 22, 2026

    @jjohnnystwsss
    Contributor

    I'll work on this. I'll check both nested source: { name, url } metadata and the flat source.name / source.url keys against the existing conventions, while keeping plain-text sources working. I'll also add rendering tests, including HTML escaping and unsafe URL cases, for the server and static output. I'll use Codex to help with implementation and testing.

  2. added a commit that references this issue on Nov 24, 2026
    1dc5f12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions