asciidoctor-epub3 icon indicating copy to clipboard operation
asciidoctor-epub3 copied to clipboard

resolves #281 prevent document from overriding epubcheck/kindlegen path attributes

Open slonopotamus opened this issue 4 years ago • 3 comments

slonopotamus avatar Mar 03 '20 17:03 slonopotamus

@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).

slonopotamus avatar Mar 03 '20 17:03 slonopotamus

See asciidoctor/asciidoctor#3587

slonopotamus avatar Mar 04 '20 13:03 slonopotamus

@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).

mojavelinux avatar Nov 01 '23 10:11 mojavelinux