typo
typo copied to clipboard
Code blocks with line numbers seems broken
(Using the latest theme from the main branch with last commit from Apr 24, 2025 at fdfbe0261202bdca04a7c438ed85ef5bb31b86b8)
My config (yaml format)
markup:
highlight:
style: monokailight
tabWidth: 2
lineNos: true
anchorLineNos: true
The markdown:
```rust {hl_lines=[3,"6-9"]}
fn main() {
let cli_flags = env::args().skip(1).collect::<Vec<String>>();
if cli_flags.contains(&String::from("--version"))
|| cli_flags.contains(&String::from("-v"))
|| cli_flags.contains(&String::from("-V"))
{
println!("v{}", env!("CARGO_PKG_VERSION"));
std::process::exit(0);
}
dotenv().ok();
let mut game = crate::game::Game::new();
game.play();
}
```
What it looks like:
Note that the line numbers also get a copy button on hover which is most likely not what we want
Yes line numbers weren't planned at all while designing the theme. I suggest you to introduce custom css in the meantime, or disable them altogether.
I'll try to have a look at this.
Yeah I'll be fine with some custom CSS. Just figured I log it here. No worries at all and thanks for you work :)