jacksleight / statamic-bard-mutator

This Statamic addon allows you to modify the data and tags rendered by the Bard fieldtype, giving you full control over the final HTML.
https://statamic.com/addons/jacksleight/bard-mutator
MIT License
19 stars 3 forks source link

Only run tag mutators once #9

Closed jacksleight closed 2 years ago

jacksleight commented 2 years ago

Closes https://github.com/jacksleight/statamic-bard-mutator/issues/8

This change prevents tag mutators running twice. Instead of mutating the tag data both times ProseMirror generates it we instead cache the first value and return that to ProseMirror the second time.