Login  Register

Two colons in inline source code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options Options
Embed post
Permalink
rev
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Two colons in inline source code

rev
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Two colons in inline source code

Simone Bordet
rev wrote
Two colons in `x :: xs` are evaled as a labeled list, breaking paragraph.
I can't think of any replacement other than rather clumsy non-equivalent workaround `x`{two-colons}`xs`.
Being an Asciidoctor noob, I'm sure there is a better way.
I just tried the passthrough +x :: xs+ and it does not work either, it's also evaluated as labeled list.

Depending on how many different usages of the double colon you have, perhaps you can do:

:cons: x :: xs

and then:

`{cons}`

Cheers
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Two colons in inline source code

mojavelinux
Administrator
In reply to this post by rev
There's actually an open issue about this one. It's one of the few places in the source code where the block-level structure interferes with inline markup. I proposed some solutions in the issue, but also pledged to find a cleaner solution in the future.

See https://github.com/asciidoctor/asciidoctor/issues/1066

Cheers,

-Dan

On Mon, Jan 12, 2015 at 4:57 AM, rev [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Two colons in `x :: xs` are evaled as a labeled list, breaking paragraph.
I can't think of any replacement other than rather clumsy non-equivalent workaround `x`{two-colons}`xs`.
Being an Asciidoctor noob, I'm sure there is a better way.


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



--
rev
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Two colons in inline source code

rev
In reply to this post by rev
CONTENTS DELETED
The author has deleted this message.