{"id":29883509,"url":"https://github.com/dixslyf/quarto-group-html-cell-outputs","last_synced_at":"2026-04-16T18:33:46.336Z","repository":{"id":305539511,"uuid":"1023065542","full_name":"dixslyf/quarto-group-html-cell-outputs","owner":"dixslyf","description":"A Quarto filter extension to group cell outputs by wrapping them with a parent container when rendering to HTML.","archived":false,"fork":false,"pushed_at":"2025-07-23T14:07:16.000Z","size":402,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-31T15:50:30.181Z","etag":null,"topics":["html","lua","nix","pandoc","pandoc-filter","quarto","quarto-extension","quarto-filter"],"latest_commit_sha":null,"homepage":"https://dixslyf.github.io/quarto-group-html-cell-outputs/","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dixslyf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-20T13:03:15.000Z","updated_at":"2025-07-23T14:06:39.000Z","dependencies_parsed_at":"2025-07-20T18:32:15.034Z","dependency_job_id":null,"html_url":"https://github.com/dixslyf/quarto-group-html-cell-outputs","commit_stats":null,"previous_names":["dixslyf/quarto-group-html-cell-outputs"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dixslyf/quarto-group-html-cell-outputs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dixslyf%2Fquarto-group-html-cell-outputs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dixslyf%2Fquarto-group-html-cell-outputs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dixslyf%2Fquarto-group-html-cell-outputs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dixslyf%2Fquarto-group-html-cell-outputs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dixslyf","download_url":"https://codeload.github.com/dixslyf/quarto-group-html-cell-outputs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dixslyf%2Fquarto-group-html-cell-outputs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31899396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html","lua","nix","pandoc","pandoc-filter","quarto","quarto-extension","quarto-filter"],"created_at":"2025-07-31T14:00:34.205Z","updated_at":"2026-04-16T18:33:46.285Z","avatar_url":"https://github.com/dixslyf.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `group-html-cell-outputs` Quarto Extension\n\nThe `group-html-cell-outputs` [Quarto](https://quarto.org/) extension adds a filter to group the outputs of a cell\nby wrapping them with a parent `div` when rendering to HTML.\n\n## Motivation\n\nWhen Quarto renders a code cell to HTML,\nit creates separate `div` elements for the code block, standard output (`stdout`) and error output (`stderr`).\nThese output `div`s are rendered as direct siblings of the code block `div`.\nFor certain input formats (notably, Jupyter notebooks),\nthere can be multiple, interleaved `stdout` and `stderr` `div`s.\n\nThe rendering behaviour described above presents two main issues:\n\n1. Each output `div` has its own independent styling.\n   Hence, for long outputs, there may be multiple, separate scrollbars for\n   individual output blocks.\n   This looks awkward and makes the cell output hard to read.\n\n1. Since outputs are fragmented across different sibling `div`s,\n   it is difficult to treat them as a single unit.\n   For example, you cannot easily scroll or collapse all cell outputs together.\n   Furthermore, when you have an extremely long list of such `div`s,\n   it becomes difficult to limit their max height and show a scrollbar\n   without accidentally hiding part of the code block.\n\nThis filter resolves these issues by wrapping the outputs of a cell\nwith a parent `div` element.\nBy default, the parent `div` is given the `cell-output-container` class.\n\n## Installation\n\nTo install the `group-html-cell-outputs` extension for a project,\nrun the following in your shell:\n\n```sh\nquarto add dixslyf/quarto-group-html-cell-outputs\n```\n\nSee Quarto's documentation on [Managing Extensions](https://quarto.org/docs/extensions/managing.html)\nfor more information.\n\n## Usage\n\nIn your `_quarto.yml` file or document's YAML header, add `group-html-cell-outputs` to `filters`:\n\n```yaml\nfilters:\n  - group-html-cell-outputs\n```\n\nWhen this filter is used with the default configuration,\nall outputs of a cell are automatically wrapped in a shared parent `div`\nwith the `cell-output-container` class.\nSome default styles are applied to `cell-output-container` to\nadjust padding and prevent each child output element from having its own scrollbar\nso that the output container looks like a single output block.\n\nFor additional configuration,\nplease refer to the [documentation](https://dixslyf.github.io/quarto-group-html-cell-outputs/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdixslyf%2Fquarto-group-html-cell-outputs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdixslyf%2Fquarto-group-html-cell-outputs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdixslyf%2Fquarto-group-html-cell-outputs/lists"}