2021-05-24 19:17:37 +02:00
|
|
|
```
|
2021-05-29 23:36:49 +02:00
|
|
|
% pandoc command/chap1/text.md command/chap2/text.md -f markdown+rebase_relative_paths --verbose -t docx -o - | pandoc -f docx -t plain
|
2021-05-24 19:17:37 +02:00
|
|
|
^D
|
2021-05-30 19:22:02 +02:00
|
|
|
[INFO] Loaded command/chap1/spider.png from command/chap1/spider.png
|
|
|
|
[INFO] Loaded command/chap2/spider.png from command/chap2/spider.png
|
|
|
|
[INFO] Loaded command/chap1/../../lalune.jpg from command/chap1/../../lalune.jpg
|
2021-05-24 19:17:37 +02:00
|
|
|
Chapter one
|
|
|
|
|
|
|
|
A spider: [spider]
|
|
|
|
|
2021-05-27 20:26:38 +02:00
|
|
|
Another spider: [another spider]
|
|
|
|
|
2021-05-24 19:17:37 +02:00
|
|
|
The moon: [moon]
|
|
|
|
|
|
|
|
Link to spider picture.
|
|
|
|
|
|
|
|
URL left alone: manual.
|
|
|
|
|
|
|
|
Absolute path left alone: absolute.
|
|
|
|
|
2021-05-27 22:53:26 +02:00
|
|
|
Link to fragment: chapter two.
|
|
|
|
|
2021-05-27 23:16:37 +02:00
|
|
|
Empty path: empty.
|
|
|
|
|
2021-05-24 19:17:37 +02:00
|
|
|
Chapter two
|
|
|
|
|
|
|
|
A spider: [spider]
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc command/chap1/text.md command/chap2/text.md -f markdown+rebase_relative_paths -t html
|
|
|
|
^D
|
|
|
|
<h1 id="chapter-one">Chapter one</h1>
|
|
|
|
<p>A spider: <img src="command/chap1/spider.png" alt="spider" /></p>
|
2022-01-10 19:40:49 +01:00
|
|
|
<p>Another spider: <img src="command/chap2/spider.png"
|
|
|
|
alt="another spider" /></p>
|
2021-05-24 19:17:37 +02:00
|
|
|
<p>The moon: <img src="command/chap1/../../lalune.jpg" alt="moon" /></p>
|
|
|
|
<p>Link to <a href="command/chap1/spider.png">spider picture</a>.</p>
|
2021-12-20 22:44:03 +01:00
|
|
|
<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>
|
2021-05-27 22:53:26 +02:00
|
|
|
<p>Link to fragment: <a href="#chapter-two">chapter two</a>.</p>
|
2021-05-27 23:16:37 +02:00
|
|
|
<p>Empty path: <a href="">empty</a>.</p>
|
2021-05-24 19:17:37 +02:00
|
|
|
<h1 id="chapter-two">Chapter two</h1>
|
|
|
|
<p>A spider: <img src="command/chap2/spider.png" alt="spider" /></p>
|
|
|
|
```
|
2021-05-28 22:58:44 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc command/chap1/text.md command/chap2/text.md -f commonmark+rebase_relative_paths -t html
|
|
|
|
^D
|
|
|
|
<h1>Chapter one</h1>
|
|
|
|
<p>A spider: <img src="command/chap1/spider.png" alt="spider" /></p>
|
2022-01-10 19:40:49 +01:00
|
|
|
<p>Another spider: <img src="command/chap2/spider.png"
|
|
|
|
alt="another spider" /></p>
|
2021-05-28 22:58:44 +02:00
|
|
|
<p>The moon: <img src="command/chap1/../../lalune.jpg" alt="moon" /></p>
|
|
|
|
<p>Link to <a href="command/chap1/spider.png">spider picture</a>.</p>
|
2021-12-20 22:44:03 +01:00
|
|
|
<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>
|
2021-05-28 22:58:44 +02:00
|
|
|
<p>Link to fragment: <a href="#chapter-two">chapter two</a>.</p>
|
|
|
|
<p>Empty path: <a href="">empty</a>.</p>
|
|
|
|
<h1>Chapter two</h1>
|
|
|
|
<p>A spider: <img src="command/chap2/spider.png" alt="spider" /></p>
|
|
|
|
```
|