asciidoctor-epub3
asciidoctor-epub3 copied to clipboard
resolves #281 prevent document from overriding epubcheck/kindlegen path attributes
@mojavelinux is there any way how I can do this without sneaking into document internals? The problem is that I want to block document from modifying attribute even if it was not specified on command-line via -a attr=value
.
Ignore the fact that tests fail on 1.5.x, I'll just ignore them (pun not intended).
See asciidoctor/asciidoctor#3587
@mojavelinux is there any way how I can do this without sneaking into document internals?
You can find an example in Asciidoctor PDF. See https://github.com/asciidoctor/asciidoctor-pdf/blob/f880a52c2eb8d62e4e7f11edc54c6b4bae828161/lib/asciidoctor/pdf/converter.rb#L145
It's not a public API, which I agree would be nice. But it's also about timing. The converter needs to be able to set this before the document is allowed to do so.
Another way of doing it is to use a preprocessor extension (which doesn't touch the document reader).