Closed Arrekin closed 3 months ago
Right after I wrote this issue I realized what it may be :d I am using Cirrus-ui for styling my page and there is placeholder
widget which most likely is applied to this span.
I came up with this workaround that is sufficient for me for now:
.rust.placeholder {
all: initial;
}
I put it in my own .css file that is included after cirruss css
and before base16-mocha.dark css
. It clears any already applied styling.
Thank you for being my rubber duck today. I spent the whole day yesterday wondering what in tarnation is happening here and it took me 2 minutes to realize what it may be after writing all that lengthy issue here.
Hey, I wanted to add to my page written using Sycamore code blocks with syntax coloring. Generally, everything worked well until I tried to add snippet containing the following line:
println!("{}", best_value);
The HTML result shows like this(note the "{}" in the center of the aberration):![image](https://github.com/trishume/syntect/assets/11314775/152801a4-b434-4e42-a7e7-6daefb3015fd)
The generated spans look like this:
Lib version:
syntect = { version = "5.2.0", features = ["default-fancy", "default-themes"], default-features = false }
CSS auto-generated theme:base16-mocha.dark
System: Run inside WSL(Ubuntu) on Windows 10 Rust Version: rustc 1.77.2 (nightly)I tested a few cases.
println!("something");
- works fineprintln!("{0}", best_value)
- the same issue, shows {0} in the centerprintln!("{bw}", bw=best_value)
- the same issue, shows {bw} in the centerprintln!("{}, {}", best_value, worst_value)
- the same issue, there is that gray block for each occurence of {}And here is how I am using Sytect to generate spans: