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

ePub syntax error, class attribute redefined on anchor tags is the source file's tag has an existing class. #3716

Closed
dotHTM opened this issue Jun 1, 2017 · 0 comments

Comments

@dotHTM
Copy link

dotHTM commented Jun 1, 2017

Running pandoc on HTML content where a href tags have a class, pandoc adds another class attribute which is not allowed in ePub output in at least two ePub readers (iBooks, Kitabu). Both tested readers report errors related to "Attribute class redefined"

Sample command that exhibits this issue:
pandoc http://search.cpan.org/~timb/DBI-1.636/DBI.pm -o dbi.cpan.epub

Where some anchor tags contain the attribute class="podlinkurl" and the same link tag in the output ePub chapter 1 HTML file reads class="uri" class="podlinkurl" where the ePub render error points out the redefined attribute.

Work around is to curl the link, then search/replace via perl, sed, etc to remove the existing class attributes on a href tags and then pipe into pandoc for conversion.

Current versions:

  • macOS 10.12.5
  • iBooks 1.10
  • Kitabu 1.1
  • pandoc 1.19.2.1
    Compiled with pandoc-types 1.17.0.5, texmath 0.9, skylighting 0.1.1.4```
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