How to process content being pasted from excel to proseMirrorTable

Hi ProseMirror!

In my editor I have a functionality to convert content of certain format, (let’s say date) to a mark automatically. Things wokrs fine with inputRule and paste handler.

I am a little bit struggling when it comes to table. I want to enable the users to copy a table contain dates from excel to a prosemirror table, and get them automatically converted to mark.s

However, for some reason, the exisiting paste handler is not triggreed when pasteing excel. I did some digging into the source code of prosmirror-table. It seems the paste event is being intercepted and handeled by the table plugin and thus it did not reach my paste handler.

I am wondering if people could let me konw where is the correct place to process the content, after it being pasted into the table? I have thought about adding some logic in a onTransaction hook, which would be called everytime a new transaction is commited. However, converting the dates to mark would also has its own transaction and would lead to a semi infinite loop.