rubygem-asciidoctor/test-install
Troy Dawson 79c1a43fb0 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/rubygem-asciidoctor#4f30337ed55ab3081689b96832c7a3a3b15c0f52
2020-10-15 05:18:40 -07:00

20 lines
491 B
Ruby
Executable File

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