diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2014-08-10 17:48:41 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2014-08-10 17:48:41 -0600 |
| commit | 3b95fa59a0f7a09bfd90c8c14dc895352c1dd503 (patch) | |
| tree | 3e8ba7549bb35a1248c5f2505be62653120abff1 | |
| parent | 4eb022cecd1006b928b5fa393919bac629fc8c04 (diff) | |
fix broken examples in README
| -rw-r--r-- | README.adoc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/README.adoc b/README.adoc index 8c3fa465..921c0bf3 100644 --- a/README.adoc +++ b/README.adoc @@ -235,16 +235,16 @@ You can also convert an AsciiDoc string to embeddable HTML (for inserting in an [source] ---- -content = '_Zen_ in the art of writing http://asciidoctor.org[AsciiDoc].', safe: 'safe' -Asciidoctor.convert content +content = '_Zen_ in the art of writing http://asciidoctor.org[AsciiDoc].' +Asciidoctor.convert content, safe: 'safe' ---- If you want the full HTML document, enable the `header_footer` option as follows: [source] ---- -content = '_Zen_ in the art of writing http://asciidoctor.org[AsciiDoc].', safe: 'safe' -html_document = Asciidoctor.convert content, header_footer: true +content = '_Zen_ in the art of writing http://asciidoctor.org[AsciiDoc].' +html = Asciidoctor.convert content, header_footer: true, safe: 'safe' ---- If you need access to the parsed document, you can split the conversion into discrete steps: |
