Skip to content

Commit

Permalink
feat: support passing includeExplanation, close #568
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 29, 2024
1 parent e959e05 commit cebf19b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions packages/core/src/code-to-hast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ export function codeToHast(
tokens = codeToThemedTokens(
internal,
input,
{
...options,
includeExplanation: false,
},
options,
)

const _theme = internal.getTheme(options.theme)
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/code-to-tokens-themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export function codeToTokensWithThemes(
...themes.map(t => codeToThemedTokens(internal, code, {
...options,
theme: t.theme,
includeExplanation: false,
})),
)

Expand Down

0 comments on commit cebf19b

Please sign in to comment.