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

fix: resolve links correctly when book contains exactly one chapter #101

Merged
merged 3 commits into from
Jun 24, 2024

Conversation

max-heller
Copy link
Owner

@max-heller max-heller commented Jun 24, 2024

Pandoc's --file-scope option only takes effect if there are at least two files, so if there is only one file, links will not be adjusted correctly. In this case, add an additional empty dummy file as input to convince Pandoc to perform the link adjustment.

@max-heller max-heller merged commit 5c8f15b into main Jun 24, 2024
20 checks passed
@max-heller max-heller deleted the single-chapter branch June 24, 2024 12:52
@max-heller max-heller mentioned this pull request Jun 24, 2024
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

Successfully merging this pull request may close these issues.

1 participant