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

undefined method `epub_stylesheet' #36

Closed
chinhodado opened this issue Nov 6, 2017 · 3 comments
Closed

undefined method `epub_stylesheet' #36

chinhodado opened this issue Nov 6, 2017 · 3 comments

Comments

@chinhodado
Copy link

I'm having this issue with paru:

C:/abc/methods.rb:44:in `block in gen_epub': undefined method
 `epub_stylesheet' for #<Paru::Pandoc:0x0000000002a08be0> (NoMethodError)
Did you mean?  epub_chapter_level
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/paru-0.3.0.0/lib/paru/pandoc.rb:137:in `instance_eval'
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/paru-0.3.0.0/lib/paru/pandoc.rb:137:in `configure'
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/paru-0.3.0.0/lib/paru/pandoc.rb:107:in `initialize'

What is going on here?

@chinhodado
Copy link
Author

I believe I found the cause. From the pandoc 2.0 release note:

Removed --epub-stylesheet; use --css instead (#3472, #847). Multiple stylesheets may be used. Stylesheets will be taken both from --css and from the stylesheet metadata field (which can contain either a file path or a list of them).

@htdebeer
Copy link
Owner

htdebeer commented Nov 6, 2017

That is correct. The error message you added tells us that paru did not create the epub_stylesheet method. Because the --epub-stylesheet is no longer part of pandoc 2, it has not been listed to be created in paru.

@htdebeer htdebeer closed this as completed Nov 6, 2017
@htdebeer
Copy link
Owner

htdebeer commented Nov 6, 2017

Just to be complete, if you run paru with pandoc1, that option / method is still available.

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