storyblok / richtext

A custom javascript resolver for the Storyblok Richtext field.
MIT License
9 stars 3 forks source link

[Feature Request] Add context to better support custom stylings #103

Open apfelbox opened 1 month ago

apfelbox commented 1 month ago

It would be great if the library could add the usage of some kind of context. For example, I want to add a custom "checkmark" component in every <li>, but only if it was nested inside a <ul>, not an <ol>. It would be great to let resolvers set a flag, that nested resolvers then can use.


Expected Behavior

It would be great if that feature could be added.

Current Behavior

Not implemented yet.

Steps to Reproduce

n/a