minor tweak for pandocProtectedFromInlineLaTeX

fixes handling of punctuation for text which has been protected from
bein treated as inline LaTeX