Skip to content

Commit

Permalink
update formatting-marks.adoc (PR #719)
Browse files Browse the repository at this point in the history
prevent pass:c[] from being interpretted
  • Loading branch information
andrewcarver authored and mojavelinux committed Oct 6, 2017
1 parent 74679e4 commit 75b4cfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_includes/formatting-marks.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ It means to format TEXT as monospace, but don't interpolate formatting marks or
It's roughly equivalent to Markdown's backticks.
Since AsciiDoc offers more advanced formatting, the double enclosure is necessary.
The more brute-force solution to the inline passthrough approach is to use the `+pass:c[]+` macro, which is a more verbose (and flexible) version of the plus formatting marks.
The more brute-force solution to the inline passthrough approach is to use the pass:q[`pass:c[\]`] macro, which is a more verbose (and flexible) version of the plus formatting marks.
----
The pass:c[__kernel] qualifier can be used with the pass:c[__attribute__] keyword...
Expand All @@ -208,7 +208,7 @@ The pass:c[__kernel] qualifier can be used with the pass:c[__attribute__] keywor
----
As you can see, however, the macro is not quite as elegant or concise.
In case you're wondering, the c in the target slot of the `+pass:[]+` macro applies output escaping for HTML.
In case you're wondering, the c in the target slot of the pass:q[`pass:c[\]`] macro applies output escaping for HTML.
Though not always required, it's best to include this flag so you don't forget to when it is needed.
Backslashes for escaping aren't very reliable in AsciiDoc.
Expand Down

0 comments on commit 75b4cfa

Please sign in to comment.