We continued to do research and got annoyed by the need to promote inline math environment to equation/align/equation*/align* environment repeatedly, so we quickly wrote some elisp code. (lol, totally procedural programming in Lisp.) We also defined interactive functions based on this one, but they are not posted.