Skip to content

[Feature Request] support 8-bit color sequence generated by Pygments #2963

@ganler

Description

@ganler

Is your feature request related to a problem? Please describe.
While Jupyter notebook, the notebook plugin from VSCode, and many other terminals support rendering 24-bit color sequences, Google Colab seems not render the 24-bit colors correctly for now that such highlighted texts are displayed in black and white.

For example:

print('\x1b[38;5;28;01mimport\x1b[39;00m \x1b[38;5;21;01mos\x1b[39;00m\n')

iTerm

image

Jupyter Notebook

image

Colab

image

Describe the solution you'd like
Given a 24-bit color sequence, render it to correpsonding RGB colors in HTML display correctly (not pure black).

Describe alternatives you've considered
None

Additional context
None

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions