refactor(docs): use default vitepress highlighter

Use the default vitepress highlighter instead of making our own
highlighter using shiki.

The benefits are:
  - We don't need to directly depend on shiki
  - `mermaid-example` code-blocks will use the same highlighting
    as other languages (e.g. `html`/`js`).
  - We can control the theme from the global `vitepress` config.
  - Darkmode/lightmode themes are supported
  - Escaping is already handled by the default highlight function
This commit is contained in:
Alois Klink
2022-11-17 18:18:34 +00:00
parent 461236030c
commit 6da6edfc01
3 changed files with 16 additions and 20 deletions

3
pnpm-lock.yaml generated
View File

@@ -275,9 +275,6 @@ importers:
rimraf:
specifier: ^3.0.2
version: 3.0.2
shiki:
specifier: ^0.11.1
version: 0.11.1
start-server-and-test:
specifier: ^1.14.0
version: 1.14.0