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

do not process include macro in non-asciidoc/non-text files #380

Closed
xcoulon opened this issue Jul 19, 2019 · 0 comments · Fixed by #433
Closed

do not process include macro in non-asciidoc/non-text files #380

xcoulon opened this issue Jul 19, 2019 · 0 comments · Fixed by #433

Comments

@xcoulon
Copy link
Member

xcoulon commented Jul 19, 2019

If the file to include in an include macro is an asciidoc or a text file (ie, with a .asciidoc, .adoc, .ad, .asc, or .txt extension), then we should proceed with its own include macro. For other files to include, the presence of the include macro should not matter.

@xcoulon xcoulon added this to the v0.3.0 milestone Jul 19, 2019
@xcoulon xcoulon changed the title do not process include macro in non-asciidoc files do not process include macro in non-asciidoc/non-text files Oct 29, 2019
xcoulon added a commit to xcoulon/libasciidoc that referenced this issue Oct 29, 2019
do not process 'include' macros in non-asciidoc files that are included
in the parent document.

also, move the 'IsAsciidoc' func from 'types' to 'parser' pkg.

fixes bytesparadise#380

Signed-off-by: Xavier Coulon <[email protected]>
xcoulon added a commit that referenced this issue Oct 30, 2019
…les (#433)

do not process 'include' macros in non-asciidoc files that are included
in the parent document.

also, move the 'IsAsciidoc' func from 'types' to 'parser' pkg.

fixes #380

Signed-off-by: Xavier Coulon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant