Syntax-Highlighting to HTML should give a span with css class typ-error for errors #3993
Labels
crate
Issues with using Typst as a library for other apps
feature request
New feature or request
syntax
About syntax, parsing, etc.
Description
Hey there!
I am experimenting with
leptos
andtypst
and in the middle of writing a simple code editor.Now I wanted to have
syntax-highlighting
and fair enough, that's trivial...The problem? https://github.com/typst/typst/blob/main/crates/typst-syntax/src/highlight.rs#L376-L385
An error-tag is not getting a css-span!
The most trivial fix is here: nerdachse@5749284
But of course that's probably not what you want, hence this issue, so we can find a solution that fits into everyone's plans!
Use Case
Highlighting typst to html with support for errors.
The text was updated successfully, but these errors were encountered: