saberland/saber

A plugin that uses shiki to highlight code blocks

Offen

#462 geöffnet am 18.09.2019

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (127 Forks)batch import
good first issuehacktoberfestplugin

Repository-Metriken

Stars
 (2.151 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide