Skip to content

Add highlight text transform#1

Merged
wenga86 merged 2 commits intomasterfrom
highlight
Apr 2, 2026
Merged

Add highlight text transform#1
wenga86 merged 2 commits intomasterfrom
highlight

Conversation

@wenga86
Copy link
Copy Markdown
Collaborator

@wenga86 wenga86 commented Apr 2, 2026

Problem

We are using the Contentstack Highlight plugin but jsonToHTML does not know about are listen for the highlight attribute the plugin adds to TextNodes.

Solution

Add highlight attribute to mark types
Add default node type for highlight
Extend textNodeToHTML to look for highlight key and render node type

Notes

@wenga86 wenga86 merged commit 96b41ee into master Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant