I want to use a "variable" (attribute) to hold formatted text, italic in this case. For example:
Ascii doc source "Blah 'bar' blah" yields "Blah /bar/ blah" (italics represented by /.../ here).
The latter is the result that I want.
However, the following asciidoc source yields a result of "Blah 'bar' blah.":
----
:foo: 'bar'
Blah {foo} blah.
----
For some reason, I could not get this to work, neither using asciidoc nor using asciidoctor.
I tried using underscores instead of single quotes, I get "Blah _bar_ blah".
I tried using three instead of individual single quotes, I get "Blah '''bar''' blah".
I searched the net for "asciidoc formatted attribute value", "asciidoc order of evaluation", "asciidoc order of expansion", and more, but found no good hits.
Why doesn't this work?
Can this be made to work?
Can I use something else instead?
Should I open an issue?
On Fri, Jan 27, 2017 at 10:25 AM, RainerB [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi! Great stuff, Asciidoctor (and Asciidoc)!
I want to use a "variable" (attribute) to hold formatted text, italic in this case. For example:
Ascii doc source "Blah 'bar' blah" yields "Blah /bar/ blah" (italics represented by /.../ here).
The latter is the result that I want.
However, the following asciidoc source yields a result of "Blah 'bar' blah.":
----
:foo: 'bar'
Blah {foo} blah.
----
For some reason, I could not get this to work, neither using asciidoc nor using asciidoctor.
I tried using underscores instead of single quotes, I get "Blah _bar_ blah".
I tried using three instead of individual single quotes, I get "Blah '''bar''' blah".
I searched the net for "asciidoc formatted attribute value", "asciidoc order of evaluation", "asciidoc order of expansion", and more, but found no good hits.
Why doesn't this work?
Can this be made to work?
Can I use something else instead?
Should I open an issue?
Rainer
If you reply to this email, your message will be added to the discussion below: