Running AsciiDoctor from the CLI creates an HTML document with a built-in stylesheet:
$ asciidoctor mysample.adoc
....
<title>My First Experience with the Dangers of Documentation</title>
<style>
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; }
...
However, running Asciidoctor in a Ruby file fails:
r.rb:
require 'asciidoctor'
Asciidoctor.render_file('mysample.adoc', :in_place => true)
$ ./r.rb
...
<title>My First Experience with the Dangers of Documentation</title>
<link rel="stylesheet" href="./asciidoctor.css">
...
The documentation does not indicate that there should be any difference. What am I missing?
More details:
- Ascidodox 0.1.4
- ruby 2.0.0p247
source
share