@shikijs/transformers
Advanced tools
Comparing version 1.24.1 to 1.24.2
@@ -117,2 +117,11 @@ import { ShikiTransformer, ShikiTransformerContext } from 'shiki'; | ||
interface TransformerNotationMapOptions { | ||
classMap?: Record<string, string | string[]>; | ||
/** | ||
* Class added to the <pre> element when the current code has diff | ||
*/ | ||
classActivePre?: string; | ||
} | ||
declare function transformerNotationMap(options?: TransformerNotationMapOptions, name?: string): ShikiTransformer; | ||
/** | ||
@@ -186,2 +195,2 @@ * Remove line breaks between lines. | ||
export { type ShikiTransformerStyleToClass, type TransformerCompactLineOption, type TransformerMetaHighlightOptions, type TransformerMetaWordHighlightOptions, type TransformerNotationDiffOptions, type TransformerNotationErrorLevelOptions, type TransformerNotationFocusOptions, type TransformerNotationHighlightOptions, type TransformerNotationWordHighlightOptions, type TransformerRenderWhitespaceOptions, type TransformerStyleToClassOptions, createCommentNotationTransformer, parseMetaHighlightString, parseMetaHighlightWords, transformerCompactLineOptions, transformerMetaHighlight, transformerMetaWordHighlight, transformerNotationDiff, transformerNotationErrorLevel, transformerNotationFocus, transformerNotationHighlight, transformerNotationWordHighlight, transformerRemoveLineBreak, transformerRemoveNotationEscape, transformerRenderWhitespace, transformerStyleToClass }; | ||
export { type ShikiTransformerStyleToClass, type TransformerCompactLineOption, type TransformerMetaHighlightOptions, type TransformerMetaWordHighlightOptions, type TransformerNotationDiffOptions, type TransformerNotationErrorLevelOptions, type TransformerNotationFocusOptions, type TransformerNotationHighlightOptions, type TransformerNotationMapOptions, type TransformerNotationWordHighlightOptions, type TransformerRenderWhitespaceOptions, type TransformerStyleToClassOptions, createCommentNotationTransformer, parseMetaHighlightString, parseMetaHighlightWords, transformerCompactLineOptions, transformerMetaHighlight, transformerMetaWordHighlight, transformerNotationDiff, transformerNotationErrorLevel, transformerNotationFocus, transformerNotationHighlight, transformerNotationMap, transformerNotationWordHighlight, transformerRemoveLineBreak, transformerRemoveNotationEscape, transformerRenderWhitespace, transformerStyleToClass }; |
{ | ||
"name": "@shikijs/transformers", | ||
"type": "module", | ||
"version": "1.24.1", | ||
"version": "1.24.2", | ||
"description": "Collective of common transformers transformers for Shiki", | ||
@@ -33,3 +33,3 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"dependencies": { | ||
"shiki": "1.24.1" | ||
"shiki": "1.24.2" | ||
}, | ||
@@ -36,0 +36,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
31665
686
+ Added@shikijs/core@1.24.2(transitive)
+ Added@shikijs/engine-javascript@1.24.2(transitive)
+ Added@shikijs/engine-oniguruma@1.24.2(transitive)
+ Added@shikijs/types@1.24.2(transitive)
+ Addedshiki@1.24.2(transitive)
- Removed@shikijs/core@1.24.1(transitive)
- Removed@shikijs/engine-javascript@1.24.1(transitive)
- Removed@shikijs/engine-oniguruma@1.24.1(transitive)
- Removed@shikijs/types@1.24.1(transitive)
- Removedshiki@1.24.1(transitive)
Updatedshiki@1.24.2