You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated @shikijs/transformers package from version 1.27.2 to version 1.29.1 and there is no exported createCommentNotationTransformer function anymore, which now produces an error when I try to build my project:
error during build:
[vite-plugin-sveltekit-compile] src/lib/utils/highlighter.ts (8:1): "createCommentNotationTransformer" is not exported by "node_modules/@shikijs/transformers/dist/index.mjs", imported by "src/lib/utils/highlighter.ts".
file: /home/buhodev/projects/frontend/src/lib/utils/highlighter.ts:8:1
6: transformerNotationFocus,
7: transformerNotationErrorLevel,
8: createCommentNotationTransformer,
^
9: transformerNotationWordHighlight
10: } from '@shikijs/transformers';
What's the new recommended way to create custom transformers now? I am using the createCommentNotationTransformer function to create a transformer that leverages the word highlighting and also adds a data-tooltip="tooltip text" prop to the node.
I updated
@shikijs/transformers
package from version1.27.2
to version1.29.1
and there is no exportedcreateCommentNotationTransformer
function anymore, which now produces an error when I try to build my project:What's the new recommended way to create custom transformers now? I am using the
createCommentNotationTransformer
function to create a transformer that leverages the word highlighting and also adds adata-tooltip="tooltip text"
prop to the node.e.g. of usage in a markdown file:
The text was updated successfully, but these errors were encountered: