parse code snippets ie ``js const a = 1;`` in Telegram and perform syntax highlighting in the post using Prism

This commit is contained in:
Pierre Nel
2024-08-09 11:37:54 +02:00
parent 50fc7413a9
commit ddfcec21c2
3 changed files with 35 additions and 26 deletions

View File

@@ -23,6 +23,7 @@
"dayjs": "^1.11.12",
"lru-cache": "^11.0.0",
"ofetch": "^1.3.4",
"prismjs": "^1.29.0",
"sanitize-html": "^2.13.0"
},
"devDependencies": {