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

Support ifdef, ifndef, ifeval #876

Closed
OneMoreGres opened this issue Nov 25, 2021 · 3 comments · Fixed by #889
Closed

Support ifdef, ifndef, ifeval #876

OneMoreGres opened this issue Nov 25, 2021 · 3 comments · Fixed by #889
Assignees
Milestone

Comments

@OneMoreGres
Copy link

It helps to write complex documents

Example:

ifeval::["{doctype}" != "summary"]
include::intro.adoc[]
endif::[]

ifdef::short[]
include::summary.adoc[]
endif::[]

ifndef::short[]
include::reference.adoc[]
endif::[]
@xcoulon
Copy link
Member

xcoulon commented Nov 28, 2021

Thanks for opening this issue @OneMoreGres, I will take a look at it

@xcoulon xcoulon self-assigned this Nov 28, 2021
@xcoulon xcoulon added this to the v0.7.0 milestone Nov 28, 2021
xcoulon added a commit to xcoulon/libasciidoc that referenced this issue Dec 27, 2021
support for `ifdef`, `ifndef` and `ifeval` directives

note: `ifdef` and `ifndef` do not support checking of multiple
attributes yet.

fixes bytesparadise#876

Signed-off-by: Xavier Coulon <[email protected]>
xcoulon added a commit that referenced this issue Dec 27, 2021
support for `ifdef`, `ifndef` and `ifeval` directives

note: `ifdef` and `ifndef` do not support checking of multiple
attributes yet.

fixes #876

Signed-off-by: Xavier Coulon <[email protected]>
@OneMoreGres
Copy link
Author

Great! Thanks!

@xcoulon
Copy link
Member

xcoulon commented Dec 27, 2021

Great! Thanks!

my pleasure! thanks to you for reporting this issue ;)

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.

2 participants