2025-04-21 19:23:24 -07:00
|
|
|
# Testing relative links for the print page
|
|
|
|
|
|
|
|
|
|
When we link to [the first section](../first/nested.md), it should work on
|
|
|
|
|
both the print page and the non-print page.
|
|
|
|
|
|
2025-09-16 14:07:54 -07:00
|
|
|
The same link should work [with an html extension](../first/nested.html).
|
|
|
|
|
|
2025-04-21 19:23:24 -07:00
|
|
|
A [fragment link](#some-section) should work.
|
|
|
|
|
|
|
|
|
|
Link [outside](../../std/foo/bar.html).
|
|
|
|
|
|
2025-09-16 14:07:54 -07:00
|
|
|
Link [outside with anchor](../../std/foo/bar.html#panic).
|
|
|
|
|
|
2025-10-30 17:48:03 -07:00
|
|
|
Link [inside but doesn't exist](../first/alpha/beta.md).
|
|
|
|
|
Link [inside but doesn't exist with anchor](../first/alpha/beta.md#anchor).
|
|
|
|
|
Link [inside to html](../first/alpha/gamma.html).
|
|
|
|
|
Link [inside to html with anchor](../first/alpha/gamma.html#anchor).
|
|
|
|
|
|
2025-04-21 19:23:24 -07:00
|
|
|

|
|
|
|
|
|
2025-09-16 14:07:54 -07:00
|
|
|
<a href="../first/nested.md">HTML Link</a>
|
2025-04-21 19:23:24 -07:00
|
|
|
|
|
|
|
|
<img src="../images/picture.png" alt="raw html">
|
|
|
|
|
|
|
|
|
|
## Some section
|
2025-09-16 14:07:54 -07:00
|
|
|
|
|
|
|
|
[Links with scheme shouldn't be touched.](https://example.com/foo.html#bar)
|
|
|
|
|
|
|
|
|
|
<a href="../images/not-html?arg1&arg2#with-anchor">Non-html link</a>
|