Similar to the DataTables editor library, DataTables could offer a generic hook where arbitrary post-processing could be done.
Also, maybe add to the docs more clearly how patterns work and that it is result post-processing. Maybe add a sample script (have one) or a test showing the feature.