Skip to content

Show ingredient quantities and preparations inline in recipe steps #337

Open

Description

@becknik

Has this something to do with i18n?

Instead of "Sautê (onion)" and add the quantity and its short-hand preparation in a box below "onion: 1 (diced)", it just could be "Sautê 1 diced (onion)".
That would enhance the reading flow immensely imo

Activity

  1. added
    question
    on Aug 7, 2026
  2. changed the title [-]Why aren't quantities and short-hand preparations listed in the recipe steps?[/-] [+]Show ingredient quantities and preparations inline in recipe steps[/+] on Aug 7, 2026
  3. added
    area: server
    on Aug 7, 2026
  4. alangrainger commented on Nov 9, 2026

    @alangrainger

    I also would love this. I feel sure that this used to be part of Cooklang, as it's what drew me to it in the first place a year or two ago.

    I have made a PR with this change added: #832

    image

    Workaround

    If you want to try this before it merges, build the image from the PR branch:

    docker build --build-arg CARGO_PROFILE=docker-dev \
      -t cookcli-inline \
      https://github.com/alangrainger/cooklang-cli.git#inline-quantities

    Then run it with the flag, either on the command line:

    docker run -p 9080:9080 -v /path/to/recipes:/recipes cookcli-inline \
      cook server /recipes --host --inline-quantities

    or through the environment, which keeps the image's own command:

    services:
      cookcli:
        image: cookcli-inline
        environment:
          COOK_INLINE_QUANTITIES: "1"
        ports:
          - "9080:9080"
        volumes:
          - /path/to/recipes:/recipes
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

    area: serverfeature requestquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions