Open KazariEX opened 7 months ago
Since JSON.stringify() does not allow the inclusion of function types, it renders any transformers used with it ineffective.
JSON.stringify()
// module.ts export const shikiOptions = { highlight: ${JSON.stringify(highlightOptions, null, 2)}, // ... };
unjs/knitwork#61
I think a util can be provided to inject global transformers into highlightOptions at runtime.
highlightOptions
Since
JSON.stringify()
does not allow the inclusion of function types, it renders any transformers used with it ineffective.