Lets see what we can do with rehype pretty code New
Syntax highlighting, line numbers, line highlights, word highlights
rehype-pretty-code is a Rehype plugin powered by the
shiki syntax highlighter that provides beautiful code blocks for Markdown or MDX. It works on both the server at build-time (avoiding runtime syntax highlighting) and on the client for dynamic highlighting.
Enjoy the accuracy and granularity of VS Code's syntax highlighting engine and
the popularity of its themes ecosystem — use any VS Code theme you want!