Skip to content

Conversation

@simonguo
Copy link
Owner

  • Add parseHTML utility to natively parse markdown with code blocks
  • CodeView now automatically detects and renders markdown content
  • Split CodeView into CodeViewInternal and wrapper for proper hooks usage
  • Add useNativeParser option to unplugin (default: true)
  • Generate CodeView components in unplugin native parser mode
  • Add vite example with both runtime and build-time parsing demos
  • Update README with markdown parsing examples and documentation
  • Add MarkdownExample to docs site
  • Create demo.md and unplugin-demo.md examples
  • Simplify unplugin documentation to focus on default native parser mode

Benefits:

  • Zero config markdown parsing at runtime
  • Consistent behavior between runtime and build-time
  • Smaller bundle size (no pre-rendered HTML)
  • Type-safe imports with unplugin
  • Backward compatible with existing code

- Add parseHTML utility to natively parse markdown with code blocks
- CodeView now automatically detects and renders markdown content
- Split CodeView into CodeViewInternal and wrapper for proper hooks usage
- Add useNativeParser option to unplugin (default: true)
- Generate CodeView components in unplugin native parser mode
- Add vite example with both runtime and build-time parsing demos
- Update README with markdown parsing examples and documentation
- Add MarkdownExample to docs site
- Create demo.md and unplugin-demo.md examples
- Simplify unplugin documentation to focus on default native parser mode

Benefits:
- Zero config markdown parsing at runtime
- Consistent behavior between runtime and build-time
- Smaller bundle size (no pre-rendered HTML)
- Type-safe imports with unplugin
- Backward compatible with existing code
@vercel
Copy link

vercel bot commented Dec 30, 2025

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

Project Deployment Review Updated (UTC)
react-code-view Ready Ready Preview, Comment Dec 30, 2025 2:59am

- Remove alias configurations from all examples (Vite, Webpack, Rollup, esbuild, Next.js)
- Rely on pnpm workspace for automatic local package linking
- Fix ESM/CJS compatibility issues:
  - Use dynamic import() for shiki in @react-code-view/core
  - Add explicit CJS exports in @react-code-view/unplugin webpack plugin
  - Fix package.json exports to correctly point to .mjs files for ESM
- Add TypeScript declarations for .md imports in unplugin package
- Refactor all examples with two-page structure:
  - Unplugin Demo page: showcases direct markdown import feature
  - Basic Usage page: demonstrates traditional CodeView usage
- Update documentation to highlight unplugin as primary usage method
- Remove InstallationPage from docs (consolidated into QuickStart)
@simonguo simonguo merged commit f8f9cab into main Dec 30, 2025
3 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.

2 participants