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