EPUB reader mangles URLs #2284
What is the precise problem? I generated it to HTML and all of the internal
links seem to work correctly?
If I remember right this step was because some EPUB documents have internal
references which span internal files - by modifying the IDs in this way,
the internal references work when all the files are read together.
…
+++ Matthew Pickering [Jul 08 15 15:23 ]:
What is the precise problem? I generated it to HTML and all of the
internal
links seem to work correctly?
I'm talking about the *external* links, e.g. in the first long
paragraph of the README:
```
Pandoc is a [Haskell]() library for converting from one markup format to
another, and a command-line tool that uses this library. It can read
[Markdown](), [CommonMark](commonmark.org), and (subsets of)
[Textile](textile), [reStructuredText](introduction.html), [HTML](),
[LaTeX](), [MediaWiki markup](Help:Formatting), [TWiki
markup](TextFormattingRules), [Haddock markup](ch03s08.html),
```
I need to think about how to fix this. The problem is that internal links
need to be mangled to point to the right place when the files get collapsed
together.
…
@mpickering, have you had a chance to think about this? It would be nice to fix this bug.
Yes leaving external links alone should be sufficient. The transformation
was designed with only internal links in mind.
…
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To see this, do
and look at the links at the beginning.
Culprit seems to be
in
fixInternalReferences
, but I couldn't figure out what this was for. @mpickering, can you shed any light/fix?