Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [asciidoc-lang-dev] Extension hooks in Asciidoc

Hi Sylvain,

> On Mar 13, 2021, at 1:05 AM, Sylvain Leroux <sylvain@xxxxxxxxxxx> wrote:
> 
> Hi David,
> 
> 
> On 13/03/2021 02:50, David Jencks wrote:
>> Maybe…. perhaps in the other direction I’ve considered trying to refactor Asciidoctor so that anything that looks syntax-wise like an extension is implemented as an extension.  I wonder if requiring this in the spec is reasonable.  Being able to replace behavior could be useful.  There could be a set of required extensions.  As usual, needs more thought :-)
> 
> I have close to zero experience with extensions. Could you be more
> explicit regarding the standard features "that looks syntax-wise like an
> extension"?
> 

I’m thinking of things such as `image:…`, `xref:…` which look like inline macros and `image::…` that looks like a block macro.

`include::…` needs to stay special as it does not necessarily introduce block content.

David Jencks
> 
> - Sylvain
> _______________________________________________
> asciidoc-lang-dev mailing list
> asciidoc-lang-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/asciidoc-lang-dev



Back to the top