aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-05-27 13:53:26 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-05-27 13:53:26 -0700
commit0661ce699fe83c64dd5a5874e8ab17241b19550c (patch)
tree304a4f03950987573c51da6cefb88502fb548bde /test/command
parent6972a7dc9158c1d56b2dc9a06f596386f6b30860 (diff)
downloadpandoc-0661ce699fe83c64dd5a5874e8ab17241b19550c.tar.gz
rebase_relative_paths extension: don't change fragment paths.
We don't want a pure fragment path to be rewritten, since these are used for cross-referencing.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/3752.md3
-rw-r--r--test/command/chap1/text.md2
2 files changed, 5 insertions, 0 deletions
diff --git a/test/command/3752.md b/test/command/3752.md
index 6d31eb450..2765d79ac 100644
--- a/test/command/3752.md
+++ b/test/command/3752.md
@@ -18,6 +18,8 @@ URL left alone: manual.
Absolute path left alone: absolute.
+Link to fragment: chapter two.
+
Chapter two
A spider: [spider]
@@ -33,6 +35,7 @@ A spider: [spider]
<p>Link to <a href="command/chap1/spider.png">spider picture</a>.</p>
<p>URL left alone: <a href="https://pandoc.org/MANUAL.html">manual</a>.</p>
<p>Absolute path left alone: <a href="/foo/bar/baz.png">absolute</a>.</p>
+<p>Link to fragment: <a href="#chapter-two">chapter two</a>.</p>
<h1 id="chapter-two">Chapter two</h1>
<p>A spider: <img src="command/chap2/spider.png" alt="spider" /></p>
```
diff --git a/test/command/chap1/text.md b/test/command/chap1/text.md
index d25514241..68a317161 100644
--- a/test/command/chap1/text.md
+++ b/test/command/chap1/text.md
@@ -11,3 +11,5 @@ Link to [spider picture](spider.png).
URL left alone: [manual](https://pandoc.org/MANUAL.html).
Absolute path left alone: [absolute](/foo/bar/baz.png).
+
+Link to fragment: [chapter two](#chapter-two).