18.3 Prince XML

The non-free HTML-to-PDf converter prince has extensive support for various PDF standards as well as tagging. E.g.:

pandoc --pdf-engine=prince \
       --pdf-engine-opt=--tagged-pdf ...

See the prince documentation for more info.