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

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes