Open
Description
I need to use particular React Component for JsonRTE entry.
My goal is to receive raw data from contentstack, and then for ol
tag use <List>...</List>
component with predefined logic and styles. But it is impossible with contentstack SDK / utils:
jsonToHtml(jsonEntry, {
customElementTypes: {
ol: (attrs: string, child: string, jsonBlock: any, extraProps?: object) => <List>{child}</List>,
},
});
Callback for ol
should always return a string...
How I can resolve this issue? Why there are no any proper utils for that?
Metadata
Metadata
Assignees
Labels
No labels