saberland/saber

A plugin that uses shiki to highlight code blocks

Open

#462 建立於 2019年9月18日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (127 fork)batch import
good first issuehacktoberfestplugin

倉庫指標

Star
 (2,151 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Feature request

What problem does this feature solve?

https://shiki.matsu.io/

It uses TextMate grammar to tokenize strings, and colors the tokens with VS Code themes. In short, Shiki generates HTML that looks exactly like your code in VS Code, and it works great in your static website generator.

What does the proposed API look like?

# saber-config.yml
plugins:
  - saber-plugin-shiki

How should this be implemented in your opinion?

Check out saber-plugin-prismjs for reference.

貢獻者指南