How to write a ProseMirror plugin

I want to write a search and replace plug-in, but I don’t know how to start! T.T

Just read the document. (看文档啊 :sweat_smile: