Orta Therox 6/23/2024

Using Shiki Syntax Highlighting in Hugo

Read Original

This article details a developer's process for replacing Hugo's default syntax highlighter with Shiki. It explains how to disable Hugo's built-in highlighting, create a Node.js script using Shiki and node-html-parser to transform HTML output, and integrate this script into a CI/CD pipeline (like GitHub Actions) for automated post-processing.

Using Shiki Syntax Highlighting in Hugo

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser