'jupyter nbconvert' is able to produce colored output in HTML and LaTeX from ipynb files with output colored and styled by ANSI escape sequences. I think https://github.com/jupyter/nbconvert/blob/main/nbconvert/filters/ansi.py is the relevant code.
Is it possible to implement this by a pandoc filter? If I understand https://github.com/jgm/pandoc/issues/5633 correctly, those escape sequences are already missing in the AST presented to a filter. Would it be possible to have an option that keeps them?
Many thanks for a great software and years of development and maintenance!
Meik