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

Allow open block to act as pass block #21

Open
GoogleCodeExporter opened this issue Jul 17, 2015 · 1 comment
Open

Allow open block to act as pass block #21

GoogleCodeExporter opened this issue Jul 17, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

An open block can masquerade as any type of delimited block except a pass 
(passthrough) block. With a small addition to asciidoc.conf, an open block 
could work as a pass block when assigned the pass style.

For example, these two blocks should be equivalent:

++++
<h1>AsciiDoc</h1>
++++

and

[pass]
--
<h1>AsciiDoc</h1>
--

Here's the line that needs to be added to asciidoc.conf to support this feature:

[blockdef-open]
...
pass-style=template="passblock",subs=("attributes","macros")

We could also add another one that disables all subs

[blockdef-open]
...
pass_-style=template="passblock",subs=()

I'm not sure how to make the subs something that can be controlled from the 
markup.

Original issue reported on code.google.com by dan.j.allen on 16 Mar 2013 at 12:55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant