a/p/inline-img ----> p/a/inline-img conversion