Skip to content

Code blocks with line numbers seems broken #125

@dominikwilkowski

Description

@dominikwilkowski

(Using the latest theme from the main branch with last commit from Apr 24, 2025 at fdfbe02)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions