mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 11:57:16 +00:00
30442b7f9d
Previously a Div with an identifier derived from the filename would be added around the contents of each file. This caused problems for "chunking" files into chapters, e.g. in EPUB. We no longer add the surrounding Div. This cooperates better with chunking. Note, however, that if you have relied on the old behavior to link to the beginning of the contents of a file using its filename as identifier, that will no longer work. Closes #8741.
415 B
415 B
% pandoc --wrap=preserve --file-scope command/file1.txt command/file2.txt
^D
<h1 id="command__file1.txt__zed">Zed</h1>
<p><a href="bar">foo</a>
and <a href="#command__file1.txt__zed">Zed</a>
and <a href="#command__file2.txt__zed">other Zed</a>
and <a href="#command__file2.txt">other file</a>
and <a href="c.md#zed">foreign Zed</a></p>
<h2 id="command__file2.txt__zed">Zed</h2>
<p><a href="baz">foo</a></p>