Skip to content

Add JSON preview and secure Markdown links - #299

Merged
tallcode merged 3 commits into
mainfrom
codex/json-markdown-preview-main
Aug 18, 2026
Merged

tallcode merged 3 commits into
mainfrom
codex/json-markdown-preview-main

Conversation

@tallcode

Copy link
Copy Markdown
Collaborator

What changed

  • Added a shared JSON formatting/tokenization core and a desktop JSON file preview.
  • Unified Markdown target classification across desktop and mobile; only http(s) images load remotely.
  • Added desktop local Markdown image rendering and the agreed mobile handling for local Markdown images.
  • Render mobile local text-file links as ordinary links rather than grey chips.
  • Protected remote downloads from credential-file paths and exposed invalid UTF-8 text preview state.

Why

Desktop lacked JSON preview, and Markdown links/images had inconsistent platform behavior and local-path safety gaps. The mobile file-link chip also wrapped poorly across lines.

Validation

  • Desktop and mobile type checks
  • Desktop and mobile ESLint
  • Targeted and full desktop/mobile test suites
  • Rust fmt, clippy, and full cargo test
  • Final mobile MarkdownText regression test and TypeScript check

Comment thread packages/json-preview/src/index.ts Fixed
@tallcode
tallcode marked this pull request as ready for review August 18, 2026 06:28
@tallcode
tallcode enabled auto-merge (squash) August 18, 2026 06:28
@tallcode
tallcode merged commit 30d22ff into main Aug 18, 2026
19 checks passed
@tallcode
tallcode deleted the codex/json-markdown-preview-main branch August 18, 2026 06:31
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.

2 participants