You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @octref. Thank you for creating shiki.
While trying out the code example from the project's website (React snippet), I've noticed that shiki doesn't highlight JSX. Instead, it treats it like a plain text. You can find my code here.
Here is the output:
import * as React from 'react';import './App.css';import Hello from './components/Hello';const logo = require('./logo.svg');function App() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> </div> <p className="App-intro"> To get started, edit <code>src/App.tsx</code> and save to reload. </p> <Hello name="TypeScript" /> </div> );}export default App;
Should be:
Thanks.
The text was updated successfully, but these errors were encountered:
Hi @octref. Thank you for creating shiki.
While trying out the code example from the project's website (React snippet), I've noticed that shiki doesn't highlight JSX. Instead, it treats it like a plain text. You can find my code here.
Here is the output:
Should be:
Thanks.
The text was updated successfully, but these errors were encountered: