78946f
#!/usr/bin/env ruby
78946f
78946f
# A sanity check to ensure that gem is functional after installing the package.
78946f
78946f
require 'asciidoctor'
78946f
Dan Allen 987075
source = <
Dan Allen 987075
= Asciidoctor
ceeaf6
Author Name <author@example.com>
Dan Allen 987075
Dan Allen 987075
http://asciidoctor.org[Asciidoctor] is an _open source_ implementation of
ceeaf6
http://asciidoc.org[AsciiDoc] in [.red]*Ruby*.
ceeaf6
ceeaf6
== Sample section
ceeaf6
ceeaf6
Sample section content
Dan Allen 987075
EOS
Dan Allen 987075
ceeaf6
puts Asciidoctor.render(source, :backend => :html5, :header_footer => true, :safe => :safe, :attributes => 'idprefix= idseparator=-')