2012-12-20 02:27:14 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
# A sanity check to ensure that gem is functional after installing the package.
|
|
|
|
|
|
|
|
require 'asciidoctor'
|
|
|
|
|
2013-06-08 21:44:03 +00:00
|
|
|
source = <<EOS
|
|
|
|
= Asciidoctor
|
2013-09-22 23:40:13 +00:00
|
|
|
Author Name <author@example.com>
|
2013-06-08 21:44:03 +00:00
|
|
|
|
|
|
|
http://asciidoctor.org[Asciidoctor] is an _open source_ implementation of
|
2013-09-22 23:40:13 +00:00
|
|
|
http://asciidoc.org[AsciiDoc] in [.red]*Ruby*.
|
|
|
|
|
|
|
|
== Sample section
|
|
|
|
|
|
|
|
Sample section content
|
2013-06-08 21:44:03 +00:00
|
|
|
EOS
|
|
|
|
|
2013-09-22 23:40:13 +00:00
|
|
|
puts Asciidoctor.render(source, :backend => :html5, :header_footer => true, :safe => :safe, :attributes => 'idprefix= idseparator=-')
|