Re: Source block

2016-09-23 Thread Lex Trotman
t; --- >> ^^^ line of dashes, no problem >> yeah! >> >> >> Another option with Asciidoctor is to masquerade a literal block as a >> source block. >> >> [source,shell,linenums] >> >> some source >>

Re: Source block

2016-09-23 Thread Stéphane Thomas
problem > yeah! > > > Another option with Asciidoctor is to masquerade a literal block as a > source block. > > [source,shell,linenums] > > some source > > ^^^ the above line won't close the block > code > yeah! > > >

Re: Source block

2016-09-23 Thread Dan Allen
literal block as a source block. [source,shell,linenums] some source ^^^ the above line won't close the block code yeah! Having to worry about collisions like this is one of the minor drawbacks of using a lightweight markup language. That's why we try to provide altern

Re: Source block

2016-09-22 Thread Stéphane Thomas
> > The Asciidoctor implementation therefore requires that the closing and > opening delimiters be the same length. Yeah I saw that. That would be nice. I need to convert miscellanous files (mostly program source but also plain text documentation, hence my problem) but using a very long delim

Re: Source block

2016-09-22 Thread Lex Trotman
> some source > code > yeah! > > > If my source code contains a line with only dashes (at least four) it will > prematurelly close my source block, this is not what I want… > > I found the two following solutions : > > 1) Use an open block : > > [s

Source block

2016-09-22 Thread Stéphane Thomas
Hi, Let's say I have the following code : [source,shell,numbered] some source code yeah! If my source code contains a line with only dashes (at least four) it will prematurelly close my source block, this is not what I want… I found the two following solutions : 1) Use an

Re: Attribute substitution in source block

2010-08-06 Thread Stuart Rackham
On 07/08/10 09:45, sylr wrote: Hi, I would like to know if its possible to make attribute substitution in source blocks, e.g. [source,shell] - sylv...@kheops:~/$ git clone {mike_git_url} mike.git - sylv...@kheops:~/$ asciidoc -a mike_gi

Re: Attribute substitution in source block

2010-08-06 Thread Lex Trotman
On 7 August 2010 07:45, sylr wrote: > Hi, > > I would like to know if its possible to make attribute substitution in > source blocks, e.g. > > [source,shell] > - > sylv...@kheops:~/$ git clone {mike_git_url} mike.git > - Attribute substituti

Attribute substitution in source block

2010-08-06 Thread sylr
Hi, I would like to know if its possible to make attribute substitution in source blocks, e.g. [source,shell] - sylv...@kheops:~/$ git clone {mike_git_url} mike.git - sylv...@kheops:~/$ asciidoc -a mike_git_url="git:///mike.git" mike.tx