Re: Attributes substitution on formatted text
Posted by
mojavelinux on
Oct 27, 2018; 7:56am
URL: https://discuss.asciidoctor.org/Attributes-substitution-on-formatted-text-tp6372p6553.html
The following should work:
= Title of mine
:tfile: target-file-used.txt
Then copy the result in the file `~/user/{tfile}` to make something.
You should see:
Then copy the result in the file ~/user/target-file-used.txt to make something.
The attribute reference would only be escaped if it was enclosed in an inline passthrough.
Then copy the result in the file `+~/user/{tfile}+` to make something.
The other possibility is that you have compat-mode enabled, perhaps via the API or CLI.
Cheers,
-Dan
On Wed, Jun 13, 2018 at 5:45 PM Daiane [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Thanks a lot Andrew!
I had tried the "pass" stuff. I must admit I don't understand what that means at all. Anyway, you pointing me that link make me create a separate file to test it again (to paste the test here) and I realized the problem was not on the formatting, but on my variable.
In the example I copied here it was simple lines, but on my project it is a set of files including each other and one of them is the file with all the variables. The one variable I want to format was wrong. Thanks a lot again!
Only for future reference:
When I test
= Title of mine
:tfile: target-file-used.txt
Then copy the result in the file `~/user/{tfile}` to make something.
Then copy the result in the file pass[`~/user/{tfile}`] to make something.
Then copy the result in the file pass:q[`~/user/{tfile}`] to make something.
The end.
I get (italic here is monospaced in html or pdf output file)
Title of mine
Then copy the result in the file ~/user/target-file-used.txt to make something.
Then copy the result in the file pass[~/user/target-file-used.txt] to make something.
Then copy the result in the file ~/user/{tfile} to make something.
The end.
Thanks again, and I apologize for my mistake
--