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

The extension should not produce raw HTML but create Block and Image object #14

Open
ggrossetie opened this issue Jul 9, 2020 · 2 comments

Comments

@ggrossetie
Copy link
Contributor

Currently, it's not possible to use this extension when the output is not an HTML document. Using Block and Image object would allow to use this extension with Asciidoctor PDF and non-HTML converters (manpage, docbook...)

@hsanson
Copy link
Owner

hsanson commented Jul 10, 2020

Sounds interesting but I would require guidance since I do not know what you mean with Block and Image objects. Pointers to documentation or examples would be useful.

@ggrossetie
Copy link
Contributor Author

Sure I will try to work on a pull request 👍
As far as I know, there's not much documentation but you can use utility methods available in an extension, for instance: https://github.com/asciidoctor/asciidoctor/blob/1cde78f91aca9b7c9ca542ad118f6a736a12c693/lib/asciidoctor/extensions.rb#L191

You can also take inspiration from Asciidoctor Diagram:

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