typo icon indicating copy to clipboard operation
typo copied to clipboard

Code blocks with line numbers seems broken

Open dominikwilkowski opened this issue 7 months ago • 2 comments

(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: Image

Note that the line numbers also get a copy button on hover which is most likely not what we want Image

dominikwilkowski avatar Apr 24 '25 23:04 dominikwilkowski

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.

tomfran avatar Apr 24 '25 23:04 tomfran

Yeah I'll be fine with some custom CSS. Just figured I log it here. No worries at all and thanks for you work :)

dominikwilkowski avatar Apr 24 '25 23:04 dominikwilkowski