Login  Register

Very annoying issue with :include_macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Very annoying issue with :include_macro

ch007m
Hi,

When I try to use include recursively include:: macro, the generated content is not correct as include:: appears in the HTML and not the content of the adoc file

Here is the structure

[source, adoc --> Parent file : project_ALLSlides.index]
= Project

include::A._Introduction_module/A._Introduction_module_AllSlides.index[]
[end]

[source, adoc --> child File : A._Introduction_module/A._Introduction_module_AllSlides.index]
== A._Introduction_module

include::A._Introduction_module/1._Chapter.adoc[]
include::A._Introduction_module/2._Chapter.adoc[]
include::A._Introduction_module/3._Chapter.adoc[]
[end]

is rendered like that using command 'asciidoctor project_AllSlides.index'

[source, html]
<div id="header">

project

</div>
<div id="content">
<div class="sect1">

A._Introduction_module

<div class="sectionbody">
<div class="paragraph">
<p>include::1._Chapter.adoc[]
include::2._Chapter.adoc[]
include::3._Chapter.adoc[]</p>
</div>
</div>
</div>
</div>
<div id="footer">
<div id="footer-text">
[end]

Remark : rendering of individual A._chapter.adoc works fine

Do we have a problem with 'include_macro' ?

Regards,

Charles
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard