mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #692] refactor(markdown): extract createBlockRenderable and fix margin consistency #717
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#717
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/692
Author: @remorses
Created: 2/16/2026
Status: 🔄 Open
Base:
main← Head:refactor/markdown-block-creation📝 Commits (4)
8e097d7refactor(markdown): extract createBlockRenderable and fix margin consistency7cf9b47fix: render space tokens as TextRenderable in createBlockRenderablea842230Merge branch 'main' into refactor/markdown-block-creation870becetest cover📊 Changes
2 files changed (+60 additions, -17 deletions)
View changed files
📝
packages/core/src/renderables/Markdown.ts(+33 -17)📝
packages/core/src/renderables/__tests__/Markdown.test.ts(+27 -0)📄 Description
Split from #597 to make review easier.
Extracts
createBlockRenderable()as a centralized dispatch for mapping token types to renderables. ExtractsgetBlockMarginBottom()helper. Fixes a bug where marginBottom wasn't updated on unchanged tokens in the updateBlocks fast paths.No behavior change except the margin fix.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.