Adding code highlighting to markdown code blocks
Now that we created our markdown powered Next.js blog, we want to show off code blocks.
Code blocks like you would have seen on this website and look like this:
function $initHighlight(block, cls) {
try {
if (cls.search(/\bno\-highlight\b/) != ...
h.daily-dev-tips.com2 min read