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

Add ability to include headers and footers in exported HTML / Markdown #66

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

marginalhours
Copy link

This PR introduces two new keyword arguments to the HTML and Markdown conversion API. These arguments allow for the inclusion of headers and footers in the output. By default, the options are False, so existing behaviour is not affected.

include_headers_and_footers: If enabled, includes header text at start of output, and appends footer text to end.

deduplicate_headers_and_footers: If enabled, headers and footers will be deduplicated based on their text content.

I have tried to keep the PR in the spirit of the library, in the sense that it is the information content of headers and footers which is retrieved, rather than any formatting details.

Please let me know what you think!

@marginalhours
Copy link
Author

I seem to have some Travis issues, but I don't think I've changed anything that would materially affect the build process, and it seems to be working on 2.6! Any ideas?

@GitBruno
Copy link
Contributor

GitBruno commented Sep 5, 2018

Your PR looks great, I can confirm I get the same error on current build. So it has nothing to do with your PR.

NoSuchCommandError: Command not found: mammoth. Check that mammoth is installed and on $PATH

I have submitted an issue (#68)

@GitBruno
Copy link
Contributor

GitBruno commented Sep 10, 2018

@MisterKeefe Travis issues have been fixed. Can you fetch the latest updates?

@marginalhours
Copy link
Author

@GitBruno thanks for the heads-up, I've pulled them into this branch 👍

Copy link

@ActualAkshay ActualAkshay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include headers and footers

@ahsanshakil9700
Copy link

Any idea when this will be merged? Also is it functional for node.js?

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.

4 participants