[libvirt] [PATCH 1/6] docs: process code blocks similar to Markdown
Daniel P. Berrange
berrange at redhat.com
Wed Oct 30 15:07:59 UTC 2013
On Wed, Sep 25, 2013 at 08:49:04AM +0200, Claudio Bley wrote:
> Wrap pre-formatted example code in <code> elements. This works
> similar to Markdown[1] code blocks[2]:
>
> Every line indented with at least 2 spaces is considered a code
> block and gets wrapped in <pre> and <code> tags.
>
> Look at the documentation for e.g. virStreamSend for before-and-after
> effects.
>
> [1] http://daringfireball.net/projects/markdown/
> [2] http://daringfireball.net/projects/markdown/syntax#precode
>
> Signed-off-by: Claudio Bley <cbley at av-test.de>
> ---
> docs/newapi.xsl | 96 ++++++++++++++++++++++++++++++++++++++++++-------------
> 1 file changed, 74 insertions(+), 22 deletions(-)
ACK, looks much nicer.
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list