Skip to content

Conversation

@slonopotamus
Copy link
Contributor

No description provided.

@slonopotamus
Copy link
Contributor Author

slonopotamus commented Mar 3, 2020

@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 slonopotamus force-pushed the kindllegen-epubcheck-path-override branch 2 times, most recently from 2c6d22e to 77b64ec Compare March 3, 2020 17:55
@slonopotamus
Copy link
Contributor Author

See asciidoctor/asciidoctor#3587

@slonopotamus slonopotamus force-pushed the kindllegen-epubcheck-path-override branch from 77b64ec to 63fe31d Compare July 2, 2020 07:33
@mojavelinux
Copy link
Member

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

@slonopotamus slonopotamus marked this pull request as draft January 12, 2025 15:19
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

Successfully merging this pull request may close these issues.

2 participants