Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Robert Panzer
AsciiDoc Language
Commits
7a504cf0
Commit
7a504cf0
authored
Jan 25, 2021
by
Dan Allen
Browse files
use indent for displaying an escaped preprocessor conditional; add entry to CHANGELOG
parent
caef99db
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.adoc
View file @
7a504cf0
...
...
@@ -18,6 +18,7 @@ Fixed::
* Update xrefs to reflect module name change in asciidoctor component
* Document the substitution values that the inline pass macro accepts; clarify the purpose of this macro (#37)
* Move callouts for block image example to included line (#39)
* Added missing leading backslash in example that shows how to escape an include directive in a verbatim block
Added::
* Import the AsciiDoc syntax quick reference content (#14)
...
...
modules/directives/pages/conditionals.adoc
View file @
7a504cf0
...
...
@@ -29,10 +29,10 @@ The conditional preprocessor directives determine which lines to add and which o
If you don't want a conditional preprocessor directive to be processed, you must escape it using a backslash.
// the following listing uses
attributes to avoid the backslash to be removed before rendering it in HTML
[source,
subs=attributes+
]
//
NOTE:
the following listing uses
indentation to prevent the directive from being processed
[source,
indent=0
]
----
{backslash}
ifdef::just-an-example[]
\
ifdef::just-an-example[]
----
Escaping the directive is necessary _even if it appears in a verbatim block_ since it's not aware of the surrounding document structure.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment