Update to Pygments 2.14, lock the version, and fix unit tests.
Review Request #12860 — Created March 1, 2023 and submitted
Pygments 2.14 has been released, fixing some issues and changing Python
version compatibility to require 3.7 or higher. It also removes an empty
wspan at the end of rendered output.
We now cap to this version explicitly. Going forward, we'll want to more
closely control the versions used, since they don't follow any kind of
This will also give us the opportunity to include some of Pygments'
changes in our release notes, or point to the appropriate Pygments docs
in the release notes under the Packaging section.
Unit tests have been updated to remove the extra empty span tag.
setup.py developand unit tests on all supported versions of
Python. They all pass.