Skip to content

feat: add rich-note demo#4

Merged
Huxpro merged 2 commits intomainfrom
feat/rich-note
Apr 4, 2026
Merged

feat: add rich-note demo#4
Huxpro merged 2 commits intomainfrom
feat/rich-note

Conversation

@Huxpro
Copy link
Copy Markdown
Owner

@Huxpro Huxpro commented Apr 2, 2026

Summary

  • Port the rich-note demo from upstream pretext to ReactLynx
  • Uses <text> inline context with nested <view> for chips and code spans, with verticalAlign for baseline alignment (Lynx has no CSS inline layout)
  • Inline <view> elements require explicit width since they don't auto-size in Lynx's inline formatting context
  • Documents known overflow issue in README

Known Issue

layoutInlineItems can overflow maxWidth by ~4px at certain widths when chips fill a line tightly. Tracked in #3.

Test plan

  • pnpm build passes in examples/basic
  • Rich-note demo renders on device with chips, code spans, and links
  • Width stepper in DevPanel adjusts layout interactively

Huxpro added 2 commits April 2, 2026 07:55
Port the rich-note demo to ReactLynx. Uses <text> inline context
with nested <view> for chips/code spans and vertical-align for
baseline alignment (Lynx has no CSS inline layout).

Known issue: layoutInlineItems can overflow maxWidth at certain
widths when chips fill a line tightly. Tracked upstream at
chenglou/pretext#88.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lynx-pretext Ready Ready Preview, Comment Apr 2, 2026 11:57am

@Huxpro Huxpro merged commit c8d816a into main Apr 4, 2026
4 checks passed
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