You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Links to sections are fixed but others links aren't.
Steps To Reproduce
$ cat sample.md
Topics
======
1. [Topic Title One](#topic-title-one)
Topic Title One
===============
Paragraphs of text including [key word 1](#key-word-1).
Reference
=========
<span id="key-word-1">key word 1</span>
: Definition of first term
$ pandoc -t epub -o sample.{epub,md}
Actual Results
Short Version
$ unzip -c sample.epub ch00{1,2,3}.xhtml | grep "a href"
<li><a href="ch002.xhtml">Topic Title One</a></li>
<p>Paragraphs of text including <a href="#key-word-1">key word 1</a>.</p>
Long Version
$ unzip -c sample.epub ch00{1,2,3}.xhtml
Archive: sample.epub
inflating: ch001.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title>Topics</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body>
<div id="topics" class="section level1">
<h1>Topics</h1>
<ol style="list-style-type: decimal">
<li><a href="ch002.xhtml">Topic Title One</a></li>
</ol>
</div>
</body>
</html>
inflating: ch002.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title>Topic Title One</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body>
<div id="topic-title-one" class="section level1">
<h1>Topic Title One</h1>
<p>Paragraphs of text including <a href="#key-word-1">key word 1</a>.</p>
</div>
</body>
</html>
inflating: ch003.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title>Reference</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body>
<div id="reference" class="section level1">
<h1>Reference</h1>
<dl>
<dt><span id="key-word-1">key word 1</span></dt>
<dd>Definition of first term
</dd>
</dl>
</div>
</body>
</html>
Expected Results
Short Version
$ unzip -c sample.epub ch00{1,2,3}.xhtml | grep "a href"
<li><a href="ch002.xhtml">Topic Title One</a></li>
<p>Paragraphs of text including <a href="ch003.xhtml#key-word-1">key word 1</a>.</p>
Long Version
$ unzip -c sample.epub ch00{1,2,3}.xhtml
Archive: sample.epub
inflating: ch001.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title>Topics</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body>
<div id="topics" class="section level1">
<h1>Topics</h1>
<ol style="list-style-type: decimal">
<li><a href="ch002.xhtml">Topic Title One</a></li>
</ol>
</div>
</body>
</html>
inflating: ch002.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title>Topic Title One</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body>
<div id="topic-title-one" class="section level1">
<h1>Topic Title One</h1>
<p>Paragraphs of text including <a href="ch003.xhtml#key-word-1">key word 1</a>.</p>
</div>
</body>
</html>
inflating: ch003.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title>Reference</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body>
<div id="reference" class="section level1">
<h1>Reference</h1>
<dl>
<dt><span id="key-word-1">key word 1</span></dt>
<dd>Definition of first term
</dd>
</dl>
</div>
</body>
</html>
Environment Information
$ pandoc --version | head -n 1
pandoc 1.13.3
The text was updated successfully, but these errors were encountered:
Summary
Links to sections are fixed but others links aren't.
Steps To Reproduce
Actual Results
Short Version
Long Version
Expected Results
Short Version
Long Version
Environment Information
The text was updated successfully, but these errors were encountered: