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

pandoc does not honor the AsciiDoc page breaks or include::[] macros #988

Closed
todd-a-jacobs opened this issue Sep 17, 2013 · 3 comments
Closed

Comments

@todd-a-jacobs
Copy link

AsciiDoc defines <<< as a page break, but does not recognize the resulting DocBook markup of <simpara><?asciidoc-pagebreak?></simpara>. The DocBook XML is a necessary intermediate step for master documents that contain subdocuments, since pandoc doesn't (yet?) honor the include::[] macro for combining separate documents, either.

Running pandoc on a master document results in a bulleted list of include statements. Running pandoc on AsciiDoc -> DocBook output results in the page breaks simply being ignored.

@mpickering
Copy link
Collaborator

There is nowhere in the pandoc AST for page breaks unfortunately. There are also technical limitations with macros such as include::[]. It is better to handle that with a preprocessor and feed pandoc the complete document.

@tarikgraba
Copy link
Contributor

@jgm In relation with #1934 can <?asciidoc-pagebreak?> support added to the DocBook reader?

@jgm
Copy link
Owner

jgm commented Mar 25, 2021

You might add a note to #1934 about <?asciidoc-pagebreak?> if it's not there already.

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

4 participants