mdbook/tests/testsuite/print/relative_links/src/second/nested.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
682 B
Markdown
Raw Normal View History

# 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.
The same link should work [with an html extension](../first/nested.html).
A [fragment link](#some-section) should work.
Link [outside](../../std/foo/bar.html).
Link [outside with anchor](../../std/foo/bar.html#panic).
![Some image](../images/picture.png)
<a href="../first/nested.md">HTML Link</a>
<img src="../images/picture.png" alt="raw html">
## Some section
[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>