Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Robert Bachmann
AsciiDoc Language
Commits
caef99db
Commit
caef99db
authored
Jan 26, 2021
by
Alexander Schwartz
Committed by
Dan Allen
Feb 16, 2021
Browse files
prevent backslash of "\ifdef" in listing to be rendered without the backslash (PR #46)
parent
da3ba69a
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/directives/pages/conditionals.adoc
View file @
caef99db
...
...
@@ -29,8 +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+]
----
\
ifdef::just-an-example[]
{backslash}
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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