turnermm / epub

Dokuwiki plugin for creating ebooks
http://www.dokuwiki.org/plugin:epub
15 stars 9 forks source link

Internal links vs. external links #33

Open Oreolek opened 2 years ago

Oreolek commented 2 years ago

When I tried this plugin, it treated all internal links like external, linking to the wiki site instead of the corresponding page in the book. Is there a way to link to the section?

i.e.

<epub:Book>
[[dictionary|Dictionary]]
 [[word|Word]]
<epub>

dictionary.html:
[[word]]

epub:
word [1]
[1]: http://localhost/doku.php?id=word

I'm using the default dokuwiki template, release 2020-07-29, all links have the wikilink1 class.

turnermm commented 2 years ago

I the page is included in the ebook, it links directly to the ebook. Otherwise, it links to the wiki and the page in that wiki.

Oreolek commented 2 years ago

Well no it doesn't, that's my point.

turnermm commented 2 years ago

I'm afraid I can't investigate, then, something I can't reproduce. Attached is a demo of internal and external links. Has to be unzipped. 2021_september_27_08-58-35.zip .