Backtick rendering

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Backtick rendering

asciidocuser48
Given the syntax below, I expected the parentheses to be formatted monospace and no further processing. But they were completely missing. The generated html was: Numerical expressions: <code></code>

Syntax: Numerical expressions: `(( ))`

I think the error below might be related:

Error: asciidoctor: WARNING: skipping reference to missing attribute: zebra

Source: missing attribute test:  `${zebra}`

I expected to see ${zebra} monospace and nothing else. I often refer to bash variables this way in text.
Reply | Threaded
Open this post in threaded view
|

Re: Backtick rendering

mojavelinux
Administrator
Literal backticks in Asciidoctor are done as follows:

`+TEXT HERE+`

It's a combination of monospace formatting (the backticks) and passthrough (the pluses).

This was done to add more control.


-Dan

On Fri, Jan 26, 2018 at 8:42 AM, asciidocuser48 [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Given the syntax below, I expected the parentheses to be formatted monospace and no further processing. But they were completely missing. The generated html was: Numerical expressions: <code></code>

Syntax: Numerical expressions: `(( ))`

I think the error below might be related:

Error: asciidoctor: WARNING: skipping reference to missing attribute: zebra

Source: missing attribute test:  `${zebra}`

I expected to see ${zebra} monospace and nothing else. I often refer to bash variables this way in text.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Backtick-rendering-tp6139.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux