Skip to content

feat: markdown preview#190

Open
eugenioenko wants to merge 1 commit into
mainfrom
feat/markdown-preview
Open

feat: markdown preview#190
eugenioenko wants to merge 1 commit into
mainfrom
feat/markdown-preview

Conversation

@eugenioenko

Copy link
Copy Markdown
Owner

Summary

  • Adds read-only markdown preview tab for .md files using goldmark for AST-based parsing
  • Supports headers, bold, italic, inline code, fenced code blocks (with syntax highlighting), lists, blockquotes, links, horizontal rules
  • Content word-wrapped at 80 chars, centered in wider viewports, scrollable via keyboard and mouse wheel
  • Accessible via "Open Preview" command palette or right-click "Preview" on .md files in explorer
  • Tab deduplication: reopening preview for same file switches to existing tab

Test plan

  • 14 unit tests for markdown rendering (headers, bold, italic, code, lists, blockquotes, links, word wrap)
  • 5 E2E tests (open command, tab dedup, heading render, non-md rejection, list render)
  • 3 functional tests (preview open, list bullets, non-md rejection)

🤖 Generated with Claude Code

Adds a read-only preview tab for .md files using goldmark for proper
markdown parsing. Supports headers, bold, italic, code spans, fenced
code blocks with syntax highlighting, lists, blockquotes, links, and
horizontal rules. Content is word-wrapped at 80 chars and centered.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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