Re: How to create inline macro producing HTML? (In AsciidoctorJ)
Posted by
mojavelinux on
URL: https://discuss.asciidoctor.org/How-to-create-inline-macro-producing-HTML-In-AsciidoctorJ-tp8313p8333.html
> I admit I don't fully understood the "context" semantics
Context is an open-ended way to define a type. Basically, a subclass of Inline.
> why the term "quoted", I understand the meaning is the same as a "pass" block or macro, why not call it "pass"
Technically, an inline pass is not a concrete type. It's only a parsing mode. The closest thing we have is "quoted" with no subs attached. For historical reasons, "quoted" became the type that represents a span of text. (We'll likely rename this in the AsciiDoc spec to formatted text or phrase).
Btw, an extension does not have to use the create* methods. It could just instantiate a new PhraseNode. The create* methods are just helpers.
Best Regards,
-Dan
On Sat, Oct 31, 2020 at 6:31 AM abelsromero [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Thanks Dan!
That helps a lot, that confirms is not an issue then. I admit I don't fully understood the "context" semantics, instead by trial and error I usually get something working but I'd like to address that. So I have a question, why the term "quoted", I understand the meaning is the same as a "pass" block or macro, why not call it "pass" ?
--