kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/715/head
rodzic
194707b340
commit
463671abde
|
@ -53,7 +53,7 @@ export default async function TheBestDamnLandingPageEver() {
|
|||
{/* How it works section */}
|
||||
<section className='flex flex-col gap-8 mb-16'>
|
||||
<h2 className='text-center text-balance leading-snug md:leading-none text-3xl font-heading'>
|
||||
How It Works
|
||||
LLM Tools that work everywhere
|
||||
</h2>
|
||||
|
||||
<ExampleUsage
|
||||
|
|
|
@ -18,7 +18,7 @@ export async function highlight({
|
|||
}): Promise<JSX.Element> {
|
||||
className = cn('w-full text-wrap p-4 text-sm rounded-sm', className)
|
||||
|
||||
const out = await codeToHast(code, {
|
||||
const hast = await codeToHast(code, {
|
||||
lang,
|
||||
theme,
|
||||
// TODO: use a custom `pre` element down below instead of this
|
||||
|
@ -33,7 +33,7 @@ export async function highlight({
|
|||
]
|
||||
})
|
||||
|
||||
return toJsxRuntime(out, {
|
||||
return toJsxRuntime(hast, {
|
||||
Fragment,
|
||||
jsx,
|
||||
jsxs
|
Ładowanie…
Reference in New Issue