docsifyjs / docsifyjs/docsify

Shiki syntax highlight support

オープン
#2,530 コメント 5 件 リアクション 3 件 担当者 0 名 GitHub で見る
enhancement
主要言語
JavaScript
スター
31.5k
フォーク
5.8k
平均マージ
9日 8時間
マージ済み PR(30日)
2

説明

## Feature request

#### Problem or desire

Prism syntax highlight is quite bad (highlight.js is bad too).

#### Proposal

Support [Shiki](http://shiki.style/).

[Shiki](https://github.com/shikijs/shiki) has better syntax highlight because it uses TextMate grammar instead of shady regexp. It uses the same engine as in VS Code.

#### Implementation

I guess the only thing to do on doscify side, is to add a config option that allows to generate a different highlighter class prefix. That way all JS syntax highlighter could nearly be supported.

- shiki: css class `shiki`
- prism: css class `language-` prefix
- highlightjs: css class `hljs`

https://shiki.style/guide/install#cdn-usage

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。