Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format highlighting as DocLayout Docs using ANSI styles #188

Open
silby opened this issue Mar 25, 2024 · 0 comments
Open

Format highlighting as DocLayout Docs using ANSI styles #188

silby opened this issue Mar 25, 2024 · 0 comments

Comments

@silby
Copy link

silby commented Mar 25, 2024

As observed in, jgm/pandoc#9565 (comment), skylighting-format-ansi as-is produces somewhat bad results when rendering with a background color different from the terminal default, which is quite visible in the context of the work-in-progress Pandoc ANSI writer. We could control the output a bit better in that context by adding a formatter that returns a doclayout Doc. The goal would be a Doc that when rendered with doclayout's renderANSI would have the style's background color limited to a rectangle bounding the code block.

High fidelity to highlight styles will require support in doclayout for indexed and 24 bit colors, jgm/doclayout#32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant