You could do this with processContent() @bigopon has a good writeup here If you need help, set up your non-working example on codesandbox, post it here, and I will give it a shot this weekend
processContent()