Equivalent for asciidoc sys::[] block macro?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Equivalent for asciidoc sys::[] block macro?

wimalopaan
Hi all,

has somebody an equivalent for asciidoc sys::[] block macro at hand?
Thanks,

Reply | Threaded
Open this post in threaded view
|

Re: Equivalent for asciidoc sys::[] block macro?

mojavelinux
Administrator
This macro is not implemented in Asciidoctor core because it's a significant attack vector (i.e., security hole). It's one of the key reasons AsciiDoc Python got thrown out of GitHub, so, understandably, it was left out of the original requirements for Asciidoctor.

Of course, there are ways to use it responsibly and it can be useful. I see this as a perfect use case for an extension. In fact, it's a very straightforward block extension to implement. The implementation would look reasonably similar to the textql block macro extension:


or the tree block macro extension:


If you're willing to take a shot at it, I would be glad to merge it into the asciidoctor-extensions-lab. We'll eventually pull some of those extensions out into gems, either as a dedicated gem or a gem containing a group of related extensions.

-Dan

On Mon, Sep 8, 2014 at 11:40 AM, wimalopaan [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi all,

has somebody an equivalent for asciidoc sys::[] block macro at hand?
Thanks,




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Equivalent-for-asciidoc-sys-block-macro-tp2149.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--