From d86b028a06b8dbeddf9534a2e04d64e86eba2fb7 Mon Sep 17 00:00:00 2001 From: Maciej Jur Date: Thu, 15 Feb 2024 21:21:46 +0100 Subject: [PATCH] content: treesitter-on-the-web --- src/content/posts/treesitter-on-the-web.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/content/posts/treesitter-on-the-web.md b/src/content/posts/treesitter-on-the-web.md index 99f6503..3252436 100644 --- a/src/content/posts/treesitter-on-the-web.md +++ b/src/content/posts/treesitter-on-the-web.md @@ -1,6 +1,10 @@ --- title: Bringing treesitter to the Internet date: 2024-02-14T18:32:41.645Z +desc: > + Are we stuck using regex based syntax highlighters forever? + What if there is an alternative we could use on the web? + In this article I try to use a real parser to highlight syntax in code blocks. --- Recently, there has been a complete rewrite of [Shiki](https://github.com/shikijs/shiki), @@ -72,7 +76,8 @@ The comment provides a link to the Node.js documentation explaining the N-API ve napi-build = "2.0.1" ``` -In this section, we define build dependencies. Build dependencies are dependencies that are only needed during the build process, such as compiler plugins or code generation tools. +In this section, we define build dependencies. Build dependencies are dependencies +that are only needed during the build process, such as compiler plugins or code generation tools. ```toml [profile.release]