vuepress / ecosystem

Official plugins and themes for VuePress2
https://ecosystem.vuejs.press
MIT License
19 stars 25 forks source link

feat: add `shiki`/`prismjs` class names to differentiate highlight plugins #181

Closed pengzhanbo closed 4 weeks ago

pengzhanbo commented 1 month ago

Before submitting the PR, please make sure you do the following

What is the purpose of this pull request?

Description

Screenshots

Before

After

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 9301432327

Details


Totals Coverage Status
Change from base Build 9286705501: -0.02%
Covered Lines: 1003
Relevant Lines: 1583

💛 - Coveralls
Mister-Hope commented 4 weeks ago

Since there is already a shiki class on the pre element, I am thinking whether we could add a data-highlighter="shiki|prismjs" instead? This is unified with data-title and data-ext, and avoid the inconstant behavior that shiki is affecting wrapper and pre while prismjs only affects pre.

Mister-Hope commented 4 weeks ago

@pengzhanbo need help here, I try to make some tweaks, but some code blocks are having extra line-numbers-mode

Mister-Hope commented 4 weeks ago

Oh, that should be a bug you introduced in the first commit

image

image