Skip to content

[Feature] Generate and inject output blocks for litdoc cells#4

Merged
mwittie merged 26 commits into
mainfrom
feature/generate-and-copy-output-blocks
May 4, 2026
Merged

[Feature] Generate and inject output blocks for litdoc cells#4
mwittie merged 26 commits into
mainfrom
feature/generate-and-copy-output-blocks

Conversation

@mwittie

@mwittie mwittie commented Apr 25, 2026

Copy link
Copy Markdown
Owner

Describe your changes

Implements execution of litdoc-tagged fenced code blocks and injection of their output into the markdown document.

  • BashCell.Execute runs the fenced code and wraps output in <!-- BEGIN LITDOC OUTPUT --> / <!-- END LITDOC OUTPUT --> markers
  • Classify scans existing output blocks following a litdoc cell back into BashCell.output, so re-running is idempotent
  • Output value type centralises rendering and parsing of output blocks; OutputFromBlocks handles the tree-sitter-split multi-block representation
  • Indented litdoc blocks (inside list items) produce correspondingly indented output markers, including nested lists

Notes for reviewers

BashCell.Execute is still a stub that always returns "output" — real shell execution is the next step.

Checklist before requesting a review

If any of these checks are missing, please provide an explanation.

  • I have updated README files, if applicable.
  • This PR is small, otherwise explain why.

@mwittie mwittie changed the title Generate and inject output blocks for litdoc cells [Feature] Generate and inject output blocks for litdoc cells Apr 25, 2026
@mwittie mwittie self-assigned this Apr 25, 2026
@mwittie mwittie closed this Apr 30, 2026
@mwittie

mwittie commented Apr 30, 2026

Copy link
Copy Markdown
Owner Author

I'm updated how indented blocks are scanned in #7, so this PR needs to be pulled back

@mwittie mwittie reopened this May 4, 2026
@mwittie
mwittie merged commit 8923e19 into main May 4, 2026
1 check passed
@mwittie
mwittie deleted the feature/generate-and-copy-output-blocks branch May 4, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant