Re: Using macros within tabs
Posted by kameshsampath on May 10, 2019; 8:53am
URL: https://discuss.asciidoctor.org/Using-macros-within-tabs-tp6904p6907.html
I found the trick, i need to put the tab content within AsciiDoc delimiters to make it to work.
e.g.
[tabs]
====
tab1:
+
--
include::tab-doc1.adoc[]
--
tab2:
+
--
:a: 1
:b: 2
:c: 3
include::tab-doc2.adoc[]
--
====
tab-doc1.adoc
=====
= Tab 1
Asciidoc is awesome.
=====
tab-doc1.adoc
=====
= Tab 2
[source,bash,subs="attributes"]
----
{a} + {b} = {c}
----
=====