Skip to content

Commit 22222ea

Browse files
authored
docs: remove outdated highlight.js references, update to Shiki (#62)
- Replace 'Powered by highlight.js' with 'Powered by Shiki' in feature list - Remove unnecessary highlight.js CSS import examples - Update rendererOptions comment to reference Shiki instead of highlight.js - Project has been using Shiki since v3.0.0, documentation now reflects this
1 parent 712d677 commit 22222ea

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

packages/react-code-view/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A React component library for rendering code with live preview and syntax highli
88
## Features
99

1010
- 🎨 **Live Preview** - Execute and preview React code in real-time
11-
-**Syntax Highlighting** - Powered by highlight.js
11+
-**Syntax Highlighting** - Powered by Shiki
1212
- ✏️ **Editable Code** - Built-in code editor with optional CodeMirror support
1313
- 📝 **Markdown Support** - Render markdown with code blocks
1414
- 🔌 **Universal Plugin** - Works with Webpack, Vite, Rollup, esbuild, and Rspack
@@ -34,9 +34,6 @@ yarn add react-code-view
3434
import CodeView from 'react-code-view';
3535
import 'react-code-view/styles';
3636

37-
// Optional: import highlight.js theme
38-
import 'highlight.js/styles/atom-one-dark.css';
39-
4037
function App() {
4138
const code = `
4239
<button onClick={() => alert('Hello!')}>

packages/react/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ npm install @react-code-view/react @react-code-view/core
1616
import { CodeView } from '@react-code-view/react';
1717
import '@react-code-view/react/styles/index.css';
1818

19-
// Optional: import highlight theme
20-
import 'highlight.js/styles/atom-one-dark.css';
21-
2219
function App() {
2320
const code = `
2421
<Button color="primary">

packages/unplugin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ interface PluginOptions {
141141
*/
142142
rendererOptions?: {
143143
languages?: string[];
144-
// ... highlight.js options
144+
// ... Shiki options
145145
};
146146
}
147147
```

0 commit comments

Comments
 (0)