Skip to content

Commit

Permalink
fix: codeToTokens's includeExplanation option (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
uxiew authored Jul 23, 2024
1 parent c8f301c commit 55e857b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/code-to-tokens-themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export function codeToTokensWithThemes(
offset: _token.offset,
}

if ('includeExplanation' in options && options.includeExplanation) {
mergedToken.explanation = _token.explanation
}

tokens.forEach((t, themeIdx) => {
const {
content: _,
Expand Down

0 comments on commit 55e857b

Please sign in to comment.