Blog Code
Blog Code
A real, Shiki-highlighted `pre` override for post content: drop it in as the `pre` override for your rendered MDX so fenced code blocks get the same syntax highlighting as the `code-block` component, instead of unstyled markup.
local start = os.clock()for i = 1, 1000000 do local x = i * 2endprint("Duration:", os.clock() - start, "seconds")local start = os.clock()for i = 1, 1000000 do local x = i * 2endprint("Duration:", os.clock() - start, "seconds")npx shadcn add @ectopcoi-components/blog-code