Basically, it seems that a previous enhancement is incomplete. There was a fix eliminating the two blank lines occurred ahead and after latex environment. While it works for "equation" environment, it doesn't for "subequations" environment.
Tested using Pandoc 2.12. Some other computing program is connected with pandoc in my computer, so by far I have not tested this on latest version.