rust-lang / reference

The Rust Reference
https://doc.rust-lang.org/nightly/reference/
Apache License 2.0
1.25k stars 490 forks source link

Add a prefix to rule HTML IDs #1593

Closed ehuss closed 2 months ago

ehuss commented 2 months ago

This adds the r- prefix to HTML IDs generated for rule names. This fixes a problem where the HTML IDs may conflict with existing markdown headers. For example, ## Crate conflicts with r[crate]. This is done with the expectation that no headers will start with just the letter "r".