Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

feat: introduce transformers package #32

Merged
merged 13 commits into from
Nov 22, 2023
Merged

feat: introduce transformers package #32

merged 13 commits into from
Nov 22, 2023

Conversation

antfu
Copy link
Owner

@antfu antfu commented Nov 22, 2023

Introduce new shikiji-transformers package, that provides commonly used transformers. Inspired by https://github.com/innocenzi/shiki-processor

Since Shikiji is AST-based, making such transformers would be more reliable. Planned to port all processors https://github.com/innocenzi/shiki-processor supports.

For examples:

transformerRenderWhitespace:

image

transformerDiffNotation:

image

@antfu antfu marked this pull request as draft November 22, 2023 16:57
@antfu antfu marked this pull request as ready for review November 22, 2023 21:29
@antfu antfu merged commit 370a467 into main Nov 22, 2023
8 checks passed
@antfu antfu deleted the feat/transformers branch November 22, 2023 23:12
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.

1 participant