Open huguestennier opened 3 years ago
I also have this issue
Though I just figured out that the following works:
list: (props) => {
if (props.type === 'feature')
return this.$createElement(
'PortableTextFeatureList',
null,
props.children
);
const tag = props.type === 'bullet' ? 'ul' : 'ol';
return this.$createElement(tag, null, props.children);
}
I'm able to assign a vue component as a serializer for a list just fine, but which props is available to know if it the list type is bullet or numbers?