This looks like
https://github.com/jgm/pandoc/issues/4635 which is fixed in recent versions nof pandoc. 2.2.2+ Martin Michlmayr <t...@cyrius.com> writes: > Package: pandoc > Version: 2.2.1-3+b2 > > pandoc introduces a space after parentheses under certain > circumstances: > > 65576:tbm@jirafa: ~] cat pandoc > > this is a test (e.g. > why is there a space after the parenthesis?). > > 65577:tbm@jirafa: ~] cat pandoc | pandoc > <p>this is a test ( e.g. why is there a space after the parenthesis?).</p> > > -- > Martin Michlmayr > https://www.cyrius.com/