Skip to content

Conversation

@antfu
Copy link
Member

@antfu antfu commented Dec 15, 2023

This would be more efficient and reliable

@antfu antfu changed the title chore: use transformer to clean-up chore: use transformer to clean-up highlight result Dec 15, 2023
.replace(
preRE,
(_, attributes) =>
`<pre ${vPre}${attributes.replace(' tabindex="0"', '')}>`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean-up was doing two things: adding v-pre as well as removing styles. Split into two transformers to make it better scoped.

@brc-dd brc-dd merged commit 00eec7a into main Dec 16, 2023
@brc-dd brc-dd deleted the feat/shikiji-transformer branch December 16, 2023 05:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants