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

Support creating highlighting for Typst output document #201

Open
cderv opened this issue Nov 15, 2024 · 2 comments
Open

Support creating highlighting for Typst output document #201

cderv opened this issue Nov 15, 2024 · 2 comments

Comments

@cderv
Copy link
Contributor

cderv commented Nov 15, 2024

This is different than the other issue which is about the highlighting syntax support for typst block

Here I am thinking it would be great to have Syntax Highlighting Pandoc's feature be supported for Typst output so that we could get the same highlighting and theme than in other format (e.g. setting --highlight-style pygments)

Opening the issue here to discuss as this is relevant to https://pandoc.org/MANUAL.html#syntax-highlighting provided by skylighting

It seems Typst uses its own logic though with

So maybe it is matter of just provided same themes for typst or syntax closer to XML KDE (which would require a conversion to sublime-syntax file I guess).

Anyhow, opening for discussion after a first talk with @tarleb

@jgm
Copy link
Owner

jgm commented Nov 19, 2024

What this is requesting, if I understand correctly, is a new package skylighting-format-typst that formats a skylighting token stream as typst. Is that right? That should be feasible.

@cderv
Copy link
Contributor Author

cderv commented Nov 21, 2024

What this is requesting, if I understand correctly, is a new package skylighting-format-typst that formats a skylighting token stream as typst. Is that right?

Yes exactly.

jgm added a commit that referenced this issue Nov 23, 2024
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

2 participants