I would consider this in the compiler category as it translates code to HTML/ Latex.
The classical confinement is needed to call optional binaries installed on the host for e.g.:
- bibtex handling (needs perl, bibtex, texlive-base)
- python handling (needs file filter)
while one could pack everything in the snap and use strict confinement, it would blow up the snap size far beyond the current 4.7 MB - penalizing those who do not need the optional functionality.