vue instant search – How to limit the number of characters returned by algolia instantSearch ais-highlight widget

I am working on a Vue project. And I am using the ais-highlight widget of algolia instantSearch. But the widget is returning all the text for an attribute. How do I limit the number of characters displayed.

I created a Vuejs filter and used it like this..

Where MyFilter takes a string and returns the first 200 characters.

But I get a prop validation error for hit.