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

Links show up to the right of the text when processing anchor tag #10

Closed
yangl6 opened this issue Nov 9, 2016 · 1 comment
Closed

Comments

@yangl6
Copy link

yangl6 commented Nov 9, 2016

When I try to generate pdf files, everything works like a charm except the anchor tag. The link, which is defined in the href property in the anchor tag, is visible and appended to the text of the anchor tag. This cause the entire layout to be pretty messy.

For example, if I have a anchor tag in the html file:

<a class="post-link" href="http://example.org">Hello world!</a>,
Generated pdf file would contain:
Hello world! (http://example.org)

Could you please help me out with this issue? Is there any way to hide the unwanted links enclosed with the round brackets.

Thanks.

Best regards,
Leo

@peterdemartini
Copy link
Owner

@yangl6 html5-to-pdf uses a library called nightmare, which uses electron under the hood. I am not entirely sure if they provide an API to change this easily. I personally do not have the time to dig into this. However I welcome you to try and fix this, and submit a pull request.

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

2 participants