Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html generation doesn't detect Inter-document Cross References #280

Open
dewachterken opened this issue Dec 9, 2016 · 1 comment
Open

Comments

@dewachterken
Copy link

I often use inter-document cross references (<<SomeFile#Bookmark,text>>). When I generate an html from AsciidocFx, it should check wether the target bookmark is included. If yes, the resulting link should be a bookmark link. If no, the resulting link should be following the path to the file.

However, bookmarks in a parent document are not found and always result in links pointing to external files. Generating the html via CLI does result in bookmark links...

These are my test files: https://www.dropbox.com/s/nlwbvlv6mtk2h1l/WorkingWithDogs.zip?dl=0

@dewachterken
Copy link
Author

The same bug appears when the cross reference is in a file that is included itself.

Consider the following:

  • File1.adoc includes File2.adoc
  • File2.adoc includes File3.adoc
  • File2.adoc contains a cross reference to a section in File3.adoc

If AsciidocFx saves File2.adoc as html: the cross reference works as expected (internal link).
If AsciidocFx saves File1.adoc as html: the cross reference does not work. It becomes a regular hyperlink to File3.adoc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant