about summary refs log tree commit diff
path: root/tests/rustdoc/links-in-headings.rs
blob: 5a23af0e797606a0b85ed3f28e4bf01ce5e384ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![crate_name = "foo"]

//! # Heading with [a link](https://a.com) inside
//!
//! And even with
//!
//! ## [multiple](https://b.com) [links](https://c.com)
//!
//! !

//@ has 'foo/index.html'
//@ has - '//h2/a[@href="https://a.com"]' 'a link'
//@ has - '//h3/a[@href="https://b.com"]' 'multiple'
//@ has - '//h3/a[@href="https://c.com"]' 'links'