Re: Create extension to embed source code

Posted by bodiam on
URL: https://discuss.asciidoctor.org/Create-extension-to-embed-source-code-tp3645p3650.html

Thank you both for the information. I've read it, but it unfortunately doesn't make it that much clearer to me. Why do I have to create a block extension? Block extensions sound like something like the following:

[my-custom-extension]
----
content here
----

But that's not what I want. I want:

my-custom-extension::doSomething[withOptions]

Isn't that an inline extension? Does anyone have maybe some examples available? The documentation here is also limited: https://github.com/asciidoctor/asciidoctor-gradle-plugin, and I'm just looking for something which allows me to grasp what I'm doing :-)