Skip to content

Add highlight text transformation#265

Open
wenga86 wants to merge 4 commits intocontentstack:masterfrom
shopsmart:highlight
Open

Add highlight text transformation#265
wenga86 wants to merge 4 commits intocontentstack:masterfrom
shopsmart:highlight

Conversation

@wenga86
Copy link
Copy Markdown

@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.

Plugin

Solution

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

@wenga86 wenga86 requested a review from a team as a code owner April 2, 2026 17:02
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