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

:doctype: book is converting include:: to link: #353

Open
blueray453 opened this issue Apr 7, 2018 · 1 comment
Open

:doctype: book is converting include:: to link: #353

blueray453 opened this issue Apr 7, 2018 · 1 comment

Comments

@blueray453
Copy link

I need to use ":doctype: book" but it is giving some problem.

= My Book
:doctype: book //<1>
:toc:
:toc-title: Table of Contents of {doctitle}
:toclevels: 1
:sectnums:
:sectnumlevels: 1
:imagesdir: _assets/images
:compat-mode!:

:leveloffset: +1

include::Hello World.adoc[]

include::Elements.adoc[]

include::Macros.adoc[]

:leveloffset: -1

With the following Header the document looks like

My Book

link:Hello World.adoc[]

Elements.adoc

Macros.adoc

The TOC is not generated

If i remove <1> it works as expected

My Book

Table of Contents of My Book
1. Hello World
2. Elements
3. Macros

1. Hello World
....... The content works here

2. Elements
....... The content works here
.
.
.

I actually compiled the main file with asciidoctor.

asciidoctor _Book.adoc

There is no problem with asciidoctor. It also works fine with VS code. The problem seems to be with AsciidocFX only.

@rahmanusta
Copy link
Member

I guess it is related to space used in include. And, if you want to include files content in parent use :forceinclude: attribute.

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

No branches or pull requests

2 participants