diff --git a/packages/code-preview/src/transformer.ts b/packages/code-preview/src/transformer.ts index d7d9df7..cef97df 100644 --- a/packages/code-preview/src/transformer.ts +++ b/packages/code-preview/src/transformer.ts @@ -33,10 +33,11 @@ export function transform(token: Tokens.Generic, options: TransformOptions) { token.lang = token.lang?.replace(ATTR_PATTERN, '') // data for interpolation + const preview = transformer(token.text, attrs, data) const dataInterpolation = { ...data, ...attrs, - preview: transformer(token.text, attrs, data) + preview } const acc: Array =