Misleading documentation in `@shikijs/transformers`
YieldRay opened this issue · comments
Additional context
Also tested on @shikijs/transformers v1.2.1.
transformerNotationErrorLevel
The outer <pre>
tag is actually <pre class="has-highlighted">
Relevant code:
shiki/packages/transformers/src/transformers/notation-error-level.ts
Lines 12 to 24 in 639aa6b
transformerNotationFocus
In Vitepress, the documentation, the outer class is has-focused-lines
and the inner class is has-focus
This differs from what I tested on @shikijs/transformers v1.2.1.
Relevant code:
shiki/packages/transformers/src/transformers/notation-focus.ts
Lines 15 to 24 in 639aa6b
PR welcome! Thanks
PR welcome! Thanks
But I don' t known which one is correct, the docs or the source code?
The code. There were some mistakes in the docs.
ok, will try to do it.