Closed ankuragrwl closed 6 months ago
@ankuragrwl is attempting to deploy a commit to the Dub Team on Vercel.
A member of the Team first needs to authorize it.
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/eslint-config-next@13.2.4, npm/eslint@8.36.0, npm/eventsource-parser@0.1.0, npm/jotai@2.6.4, npm/lucide-react@0.244.0, npm/next-themes@0.2.1, npm/next@14.1.0, npm/novel@0.3.1, npm/openai@4.28.0, npm/postcss@8.4.35, npm/prettier-plugin-tailwindcss@0.3.0, npm/prettier@2.8.8, npm/sonner@0.7.4, npm/tailwind-merge@1.14.0, npm/tailwindcss@3.4.1, npm/tiptap-extension-auto-joiner@0.1.1, npm/tiptap-extension-global-drag-handle@0.1.6, npm/tiptap-markdown@0.8.9, npm/ts-pattern@5.0.6, npm/tsup@8.0.2, npm/turbo@1.12.3, npm/typescript@5.3.3, npm/use-debounce@9.0.4
When I was looking into this feature, I found some weird highlight.js bugs with streaming, so worth testing that
When I was looking into this feature, I found some weird highlight.js bugs with streaming, so worth testing that
Removed usage of highlight.js as defaut configuration already supports 37 most common languages
I have added the support for code syntax highlighting in code-blocks.
Following changes were included:
Added
@tiptap/extension-code-block-lowlight
to headless package. No styling added here to keep it headless.Enhanced the web application and added css styles to globals.css. Configured the lowlight using highlight languages in
extensions.ts
.const lowlight = createLowlight(common); lowlight.register("html", html); lowlight.register("css", css); lowlight.register("js", js); lowlight.register("ts", ts);
const codeBlockLowlight = CodeBlockLowlight.configure({ lowlight, });