Thank you, AmberV. I may dig into that and play with it. I am using Pandoc on my system for one other use case, although its inner workings are a mystery to me.
GR, thanks for the suggestion. Fortunately, it was only a few changes, so it took me about 5 minutes doing a search and replace.